Changes between Version 1 and Version 2 of ddlScript.sql


Ignore:
Timestamp:
12/13/24 00:00:54 (5 weeks ago)
Author:
211101
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ddlScript.sql

    v1 v2  
    77DROP TABLE IF EXISTS tag CASCADE;
    88DROP TABLE IF EXISTS "user" CASCADE;
     9DROP TABLE IF EXISTS tag_assigned_to_transaction CASCADE;
    910
    1011-- Create USER table
     
    4849    earned_amount DECIMAL(10, 2)
    4950);
     51
     52-- Create TAG_ASSIGNED_TO_TRANSACTION table
     53CREATE 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);
    5058}}}