Changes between Version 3 and Version 4 of statusdatabase
- Timestamp:
- Aug 8, 2014, 9:57:01 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
statusdatabase
v3 v4 3 3 The database is made up of 9 tables, joined together by relations. See below for a diagram of the database tables and relations 4 4 5 The PI table is made up of the PI's name, address and their email address. The table has and internal field called 'id' which is filled in automatically and is referred to whenever a PI is linked to a project code. 6 ||||||||||||= PITable =||5 The PI table is made up of the PI's name, address and their email address. The table has and internal field called 'id' which is filled in automatically and is referred to whenever a PI is linked to a project code. If you try and delete a PI, and that PI still has project_codes referring to the PI then the Database will prevent you deleting the PI. 6 ||||||||||||= pi Table =|| 7 7 ||= Key =||= Field Name =||= Value Type =||= Constraints =||= Notes =|| 8 || Primary Key || id || Integer(4 Bytes) || Required || Value is automatically generated||9 || || pi_name || Text (variable length) || Required|| ||8 || Primary Key || id || Integer(4 Bytes) || Required || Value is automatically generated. || 9 || || pi_name || Text (variable length) || Required || || 10 10 || || address || Text (variable length) || || Not required as may not be known at time of entry. || 11 11 || || email || Text (variable length) || || Not required as may not be known at time of entry. || 12 12 13 The projects table contains all the project codes and what PI relates to which project code. Many project codes can relate to one PI. 14 ||||||||||||= projects Table =|| 15 ||= Key =||= Field Name =||= Value Type =||= Constraints =||= Notes =|| 16 || Primary Key || project_code || Text (variable length) || Required || || 17 || Foreign Key || pi_id || Integer(4 Bytes) || Required || The PI's ID from the pi table. || 18 || || summary || Text (variable length) || || || 19 || || eufar_code || Text (variable length) || || || 20 || || objective || Text (variable length) || || || 13 21 14 15 16 17 22 The flights table contains the information about one flight. So if two flights were made in one day, then there would be two entries in the flight table. 23 ||||||||||||= flights Table =|| 24 ||= Key =||= Field Name =||= Value Type =||= Constraints =||= Notes =|| 25 || Primary Key || flight_id || Integer(4 Bytes) || Required || Value is automatically generated. || 26 || || flight_date || Date || Required || The date that the flight took place || 27 || || primary_ticket || Integer(2 Bytes) || Required || Primary ticket id for trac || 28 || || kml_file_location || Text (variable length) || || || 29 || || data_location || Text (variable length) || || || 30 || || sortie || Text (variable length) || Required || The letter to differentiate multiple flights flown on one day || 31 || || notes || Text (variable length) || || || 32 || || secondary_tickets || Integer(2 Bytes) Array || || || 33 || || data_recieved_on || Date || || || 18 34 19 35