Changes between Version 15 and Version 16 of WikiStart/DB
- Timestamp:
- 08/24/25 21:34:22 (20 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart/DB
v15 v16 2 2 3 3 * '''account''' (id, username, e-mail, password, balance) 4 * '''transaction''' (id, amount, type, timestamp, a ccount_id*)4 * '''transaction''' (id, amount, type, timestamp, a_id*) 5 5 * '''transfer''' (id, s_id*, r_id*) 6 6 * '''withdraw''' (id, a_id*, withdraw_amount, withdraw_timestamp) … … 24 24 type varchar(50) not null, 25 25 timestamp timestamp default current_timestamp, 26 a ccount_id int not null,27 foreign key (a ccount_id) references account(id)26 a_id int not null, 27 foreign key (a_id) references account(id) 28 28 ); 29 29 … … 56 56 create table transferred_money( 57 57 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, 60 60 t_id int not null, 61 61 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), 64 64 foreign key (t_id) references transaction(id) 65 65 );