Changes between Version 15 and Version 16 of WikiStart/DB


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

mk2

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart/DB

    v15 v16  
    22
    33* '''account''' (id, username, e-mail, password, balance)
    4 * '''transaction''' (id, amount, type, timestamp, account_id*)
     4* '''transaction''' (id, amount, type, timestamp, a_id*)
    55* '''transfer''' (id, s_id*, r_id*)
    66* '''withdraw''' (id, a_id*, withdraw_amount, withdraw_timestamp)
     
    2424    type varchar(50) not null,
    2525    timestamp timestamp default current_timestamp,
    26     account_id int not null,
    27     foreign key (account_id) references account(id)
     26    a_id int not null,
     27    foreign key (a_id) references account(id)
    2828);
    2929
     
    5656create table transferred_money(
    5757    id serial primary key,
    58     s_account_id int not null,
    59     r_account_id int not null,
     58    s_id int not null,
     59    r_id int not null,
    6060    t_id int not null,
    6161    currency varchar(50) not null,
    62     foreign key (s_account_id) references account(id),
    63     foreign key (r_account_id) references account(id),
     62    foreign key (s_id) references account(id),
     63    foreign key (r_id) references account(id),
    6464    foreign key (t_id) references transaction(id)
    6565);