initial commit for bookish-server and local environment

This commit is contained in:
David Thompson
2020-05-26 00:30:20 -04:00
parent d634e9d00f
commit 2bc790c87b
48 changed files with 15860 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
create table renters
(
id int auto_increment primary key,
name varchar(255) not null,
address varchar(255) not null,
email varchar(255) not null,
phone_number varchar(255) not null
);
create unique index renters_id_uindex
on renters (id);
create table rentals
(
id int auto_increment primary key,
renter_id int not null,
rental_date datetime not null,
return_date datetime null,
book_title varchar(255) not null,
foreign key (renter_id) references renters(id)
);