Changes between Version 1 and Version 2 of WikiStart/Optimization/vtora_verzija


Ignore:
Timestamp:
04/01/25 21:56:18 (2 months ago)
Author:
203206
Comment:

mk1

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart/Optimization/vtora_verzija

    v1 v2  
    3535    id serial primary key,
    3636    account_id int not null,
     37    transaction_id int not null,
    3738    amount decimal(15,2) not null,
    38     timestamp timestamp default current_timestamp,
    39     foreign key(account_id) references account(id)
     39    foreign key(account_id) references account(id),
     40    foreign key(transaction_id) references transaction(id)
    4041);
    4142
     
    4344    id serial primary key,
    4445    account_id int not null,
     46    transaction_id int not null,
    4547    amount decimal(15,2) not null,
    46     timestamp timestamp default current_timestamp,
    47     foreign key(account_id) references account(id)
     48    foreign key(account_id) references account(id),
     49    foreign key(transaction_id) references transaction(id)
    4850);
    4951