Changes between Version 1 and Version 2 of ddlScript.sql
- Timestamp:
- 12/13/24 00:00:54 (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ddlScript.sql
v1 v2 7 7 DROP TABLE IF EXISTS tag CASCADE; 8 8 DROP TABLE IF EXISTS "user" CASCADE; 9 DROP TABLE IF EXISTS tag_assigned_to_transaction CASCADE; 9 10 10 11 -- Create USER table … … 48 49 earned_amount DECIMAL(10, 2) 49 50 ); 51 52 -- Create TAG_ASSIGNED_TO_TRANSACTION table 53 CREATE TABLE tag_assigned_to_transaction ( 54 tag_assigned_to_transaction_id SERIAL PRIMARY KEY, 55 tag_id INT REFERENCES tag(tag_id), 56 transaction_id INT REFERENCES transaction(transaction_id) 57 ); 50 58 }}}