Changes between Version 14 and Version 15 of WikiStart/DB


Ignore:
Timestamp:
08/24/25 21:31:53 (20 hours ago)
Author:
203206
Comment:

db2

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart/DB

    v14 v15  
    4040create table deposit(
    4141    id serial primary key,
    42     account_id int not null,
     42    a_id int not null,
    4343    deposit_amount decimal(15,2) not null,
    4444    deposit_timestamp timestamp default current_timestamp,
    45     foreign key(account_id) references account(id)
     45    foreign key(a_id) references account(id)
    4646);
    4747
    4848create table withdraw(
    4949    id serial primary key,
    50     account_id int not null,
     50    a_id int not null,
    5151    withdraw_amount decimal(15,2) not null,
    5252    withdraw_timestamp timestamp default current_timestamp,
    53     foreign key(account_id) references account(id)
     53    foreign key(a_id) references account(id)
    5454);
    5555