You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"attachment_content_type_code"varchar(30) NOT NULL, -- attachment_content_type_code: Attachment Content Type Code holds the type of document based on the content. For instance, if the document is a Map, this will indicate "Map". The current values are: * Map * Directions * Manifest * Document * Image * Pilot Information Package
12
+
"description"varchar(200) NOT NULL, -- DESCRIPTION is the display quality description of the code value.
13
+
"display_order"decimal(3) NULL, -- DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.
14
+
"effective_date"DATENOT NULL DEFAULT CURRENT_DATE, -- EFFECTIVE_DATE is the date code value becomes effective.
15
+
"expiry_date"DATENOT NULL DEFAULT '9999-12-31', -- EXPIRY_DATE is the date code value expires.
16
+
"revision_count"decimal(10) NOT NULL DEFAULT 0, -- REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.
17
+
"create_user"varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record.
18
+
"create_date"DATENOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created.
19
+
"update_user"varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record.
20
+
"update_date"DATENOT NULL DEFAULT CURRENT_TIMESTAMP-- UPDATE_DATE is the date and time the row of data was updated.
21
+
)
22
+
TABLESPACE PG_DEFAULT
23
+
;
24
+
25
+
/* Create Table Comments, Sequences for Autonumber Columns */
26
+
27
+
COMMENT ON TABLE "wfprev"."attachment_content_type_code"
28
+
IS 'Attachment Content Type Code holds the type of document based on the content. For instance, if the document is a Map, this will indicate "Map". The current values are: * Map * Directions * Manifest * Document * Image * Pilot Information Package'
29
+
;
30
+
31
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."attachment_content_type_code"
32
+
IS 'attachment_content_type_code: Attachment Content Type Code holds the type of document based on the content. For instance, if the document is a Map, this will indicate "Map". The current values are: * Map * Directions * Manifest * Document * Image * Pilot Information Package'
33
+
;
34
+
35
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."description"
36
+
IS 'DESCRIPTION is the display quality description of the code value.'
37
+
;
38
+
39
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."display_order"
40
+
IS 'DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.'
41
+
;
42
+
43
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."effective_date"
44
+
IS 'EFFECTIVE_DATE is the date code value becomes effective.'
45
+
;
46
+
47
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."expiry_date"
48
+
IS 'EXPIRY_DATE is the date code value expires.'
49
+
;
50
+
51
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."revision_count"
52
+
IS 'REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.'
53
+
;
54
+
55
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."create_user"
56
+
IS 'CREATE_USER is an audit column that indicates the user that created the record.'
57
+
;
58
+
59
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."create_date"
60
+
IS 'CREATE_DATE is the date and time the row of data was created.'
61
+
;
62
+
63
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."update_user"
64
+
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.'
65
+
;
66
+
67
+
COMMENT ON COLUMN "wfprev"."attachment_content_type_code"."update_date"
68
+
IS 'UPDATE_DATE is the date and time the row of data was updated.'
"event_history_guid" UUID NOT NULL, -- event_history_guid is a unique identifier for the record.
12
+
"event_history_type_code"varchar(10) NOT NULL, -- event_history_type_code: Is a foreign key to event_history_type_code: Event History Type Code describes the types of history events that can be created. Values are: - Event - Comment
13
+
"source_object_name_code"varchar(30) NOT NULL, -- source_object_name_code: Is a foreign key to source_object_name_code: Source Object Name Code is a table to hold the name of the table that the attachment belongs to. For instance, when a manifest is attached to a Resource Request, the code value in this table will be RSRC_RQST_SUBMISSION. When a Standing Offer is attached to an Agreement, the value in this table will be AGREEMENT. For this release, there are only two values in this table: * RSRC_RQST_SUBMISSION * AGREEMENT * AIRCRAFT_DETAIL * Resource Unit * Resource Group * Contact * Supplier
14
+
"source_object_unique_id"varchar(50) NOT NULL, -- Source Object Unique Identifier is the actual primary key value of the source object that spawned the event. This, along with the Source Object Name will fully identify what the event belongs to.
15
+
"event_timestamp"TIMESTAMPNULL, -- Last Updated Timestamp is the date and time the Supplier was last updated.
16
+
"event_comment"varchar(4000) NOT NULL, -- Event Comment is either a system generated event comment, or a comment for a manual event added by a staff member.
17
+
"event_created_by_user_type"varchar(3) NULL, -- Event Created By User Type corresponds user types stored in the WebADE User_Type_Code table, which has values BC Services Card, Government, Business Partner, Unverified Individual, Verified, Individual, Service Client.
18
+
"event_created_by_userid"varchar(100) NULL, -- Event Created By Userid is the IDIR or BCEID userid of the ministry staff member that created the event.
19
+
"event_created_by_user_guid"varchar(32) NULL, -- Event Created By User Guid is the user GUID of the ministry staff member that created the event. The user guid is stored in this field corresponds to a user authorized in the WebADE platform.
20
+
"revision_count"decimal(10) NOT NULL DEFAULT 0, -- REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.
21
+
"create_user"varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record.
22
+
"create_date"DATENOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created.
23
+
"update_user"varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record.
24
+
"update_date"DATENOT NULL DEFAULT CURRENT_TIMESTAMP-- UPDATE_DATE is the date and time the row of data was updated.
25
+
)
26
+
TABLESPACE PG_DEFAULT
27
+
;
28
+
29
+
/* Create Table Comments, Sequences for Autonumber Columns */
30
+
31
+
COMMENT ON TABLE "wfprev"."event_history"
32
+
IS 'Event History is used to track significant events that occur for various modules of the system. For example, the table can track when a create supplier, update supplier, or delete supplier event has occurred. The staff person can add manual events to the tables as comments.'
33
+
;
34
+
35
+
COMMENT ON COLUMN "wfprev"."event_history"."event_history_guid"
36
+
IS 'event_history_guid is a unique identifier for the record.'
37
+
;
38
+
39
+
COMMENT ON COLUMN "wfprev"."event_history"."event_history_type_code"
40
+
IS 'event_history_type_code: Is a foreign key to event_history_type_code: Event History Type Code describes the types of history events that can be created. Values are: - Event - Comment'
41
+
;
42
+
43
+
COMMENT ON COLUMN "wfprev"."event_history"."source_object_name_code"
44
+
IS 'source_object_name_code: Is a foreign key to source_object_name_code: Source Object Name Code is a table to hold the name of the table that the attachment belongs to. For instance, when a manifest is attached to a Resource Request, the code value in this table will be RSRC_RQST_SUBMISSION. When a Standing Offer is attached to an Agreement, the value in this table will be AGREEMENT. For this release, there are only two values in this table: * RSRC_RQST_SUBMISSION * AGREEMENT * AIRCRAFT_DETAIL * Resource Unit * Resource Group * Contact * Supplier'
45
+
;
46
+
47
+
COMMENT ON COLUMN "wfprev"."event_history"."source_object_unique_id"
48
+
IS 'Source Object Unique Identifier is the actual primary key value of the source object that spawned the event. This, along with the Source Object Name will fully identify what the event belongs to. '
49
+
;
50
+
51
+
COMMENT ON COLUMN "wfprev"."event_history"."event_timestamp"
52
+
IS 'Last Updated Timestamp is the date and time the Supplier was last updated.'
53
+
;
54
+
55
+
COMMENT ON COLUMN "wfprev"."event_history"."event_comment"
56
+
IS 'Event Comment is either a system generated event comment, or a comment for a manual event added by a staff member.'
57
+
;
58
+
59
+
COMMENT ON COLUMN "wfprev"."event_history"."event_created_by_user_type"
60
+
IS 'Event Created By User Type corresponds user types stored in the WebADE User_Type_Code table, which has values BC Services Card, Government, Business Partner, Unverified Individual, Verified, Individual, Service Client.'
61
+
;
62
+
63
+
COMMENT ON COLUMN "wfprev"."event_history"."event_created_by_userid"
64
+
IS 'Event Created By Userid is the IDIR or BCEID userid of the ministry staff member that created the event.'
65
+
;
66
+
67
+
COMMENT ON COLUMN "wfprev"."event_history"."event_created_by_user_guid"
68
+
IS 'Event Created By User Guid is the user GUID of the ministry staff member that created the event. The user guid is stored in this field corresponds to a user authorized in the WebADE platform.'
69
+
;
70
+
71
+
COMMENT ON COLUMN "wfprev"."event_history"."revision_count"
72
+
IS 'REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.'
73
+
;
74
+
75
+
COMMENT ON COLUMN "wfprev"."event_history"."create_user"
76
+
IS 'CREATE_USER is an audit column that indicates the user that created the record.'
77
+
;
78
+
79
+
COMMENT ON COLUMN "wfprev"."event_history"."create_date"
80
+
IS 'CREATE_DATE is the date and time the row of data was created.'
81
+
;
82
+
83
+
COMMENT ON COLUMN "wfprev"."event_history"."update_user"
84
+
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.'
85
+
;
86
+
87
+
COMMENT ON COLUMN "wfprev"."event_history"."update_date"
88
+
IS 'UPDATE_DATE is the date and time the row of data was updated.'
FOREIGN KEY ("event_history_type_code") REFERENCES"wfprev"."event_history_type_code" ("event_history_type_code") ON DELETE No Action ONUPDATE No Action
FOREIGN KEY ("source_object_name_code") REFERENCES"wfprev"."source_object_name_code" ("source_object_name_code") ON DELETE No Action ONUPDATE No Action
"event_history_type_code"varchar(10) NOT NULL, -- event_history_type_code: Event History Type Code describes the types of history events that can be created. Values are: - Event - Comment
12
+
"description"varchar(200) NOT NULL, -- DESCRIPTION is the display quality description of the code value.
13
+
"display_order"decimal(3) NULL, -- DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.
14
+
"effective_date"DATENOT NULL DEFAULT CURRENT_DATE, -- EFFECTIVE_DATE is the date code value becomes effective.
15
+
"expiry_date"DATENOT NULL DEFAULT '9999-12-31', -- EXPIRY_DATE is the date code value expires.
16
+
"revision_count"decimal(10) NOT NULL DEFAULT 0, -- REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.
17
+
"create_user"varchar(64) NOT NULL, -- CREATE_USER is an audit column that indicates the user that created the record.
18
+
"create_date"DATENOT NULL DEFAULT CURRENT_TIMESTAMP, -- CREATE_DATE is the date and time the row of data was created.
19
+
"update_user"varchar(64) NOT NULL, -- UPDATE_USER is an audit column that indicates the user that updated the record.
20
+
"update_date"DATENOT NULL DEFAULT CURRENT_TIMESTAMP-- UPDATE_DATE is the date and time the row of data was updated.
21
+
)
22
+
TABLESPACE PG_DEFAULT
23
+
;
24
+
25
+
/* Create Table Comments, Sequences for Autonumber Columns */
26
+
27
+
COMMENT ON TABLE "wfprev"."event_history_type_code"
28
+
IS 'Event History Type Code describes the types of history events that can be created. Values are: - Event - Comment'
29
+
;
30
+
31
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."event_history_type_code"
32
+
IS 'event_history_type_code: Event History Type Code describes the types of history events that can be created. Values are: - Event - Comment'
33
+
;
34
+
35
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."description"
36
+
IS 'DESCRIPTION is the display quality description of the code value.'
37
+
;
38
+
39
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."display_order"
40
+
IS 'DISPLAY ORDER is to allow non alphabetic sorting e.g. M T W Th F S S.'
41
+
;
42
+
43
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."effective_date"
44
+
IS 'EFFECTIVE_DATE is the date code value becomes effective.'
45
+
;
46
+
47
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."expiry_date"
48
+
IS 'EXPIRY_DATE is the date code value expires.'
49
+
;
50
+
51
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."revision_count"
52
+
IS 'REVISION_COUNT is the number of times that the row of data has been changed. The column is used for optimistic locking via application code.'
53
+
;
54
+
55
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."create_user"
56
+
IS 'CREATE_USER is an audit column that indicates the user that created the record.'
57
+
;
58
+
59
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."create_date"
60
+
IS 'CREATE_DATE is the date and time the row of data was created.'
61
+
;
62
+
63
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."update_user"
64
+
IS 'UPDATE_USER is an audit column that indicates the user that updated the record.'
65
+
;
66
+
67
+
COMMENT ON COLUMN "wfprev"."event_history_type_code"."update_date"
68
+
IS 'UPDATE_DATE is the date and time the row of data was updated.'
0 commit comments