Added the new tables pending_receipt and loan_extension to the schema
This commit is contained in:
parent
b3434dbb6a
commit
b967c7dde2
21
database.sql
21
database.sql
@ -147,3 +147,24 @@ create table `kvs` (
|
||||
`value` varchar(64) not null default ''
|
||||
) character set utf8mb4,
|
||||
collate utf8mb4_unicode_ci;
|
||||
|
||||
create table `pending_receipt` (
|
||||
`user` bigint(20) not null,
|
||||
primary key (`user`),
|
||||
constraint `pr_f_user`
|
||||
foreign key(`user`) references `user`(`id`),
|
||||
`send_time` bigint(20) not null,
|
||||
`since_time` bigint(20) not null
|
||||
) character set utf8mb4,
|
||||
collate utf8mb4_unicode_ci;
|
||||
|
||||
create table `loan_extension` (
|
||||
`loan` bigint(20) not null,
|
||||
constraint `le_f_loan`
|
||||
foreign key(`loan`) references `loan`(`event`),
|
||||
`extend_time` bigint(20) not null,
|
||||
primary key (`loan`, `extend_time`),
|
||||
`old_end` bigint(20) not null,
|
||||
`new_end` bigint(20) not null
|
||||
) character set utf8mb4,
|
||||
collate utf8mb4_unicode_ci;
|
||||
|
Loading…
x
Reference in New Issue
Block a user