I have created a Database in Mysql from a Firebird Database. In the Database there is a Common Sequence table(Common_ID) which generates sequence for all tables (45 Tables in database). Some Tables are
Table1 = Sequence (ID Auto-increment)-The Common Sequence Table
Table2 = Process (Sequence, Process_Number(Unique), Category_Name)
Table2 = Tasks (Sequence, Barcode(Unique), Process_Number(sequence from Process Table), Product_Name)
This database already has more than 600,000 records. One "Process" can have Many "Tasks". My questions are: What relationship should be between "Sequence" Table and "Process/Tasks" tables? What relationship should be between Process Table and Tasks Table? How do i insert in "Sequence" Table and use that "ID" in other Tables?
This is my first question and i am new to databases, so apologies for any mistakes.