test
Форк от lirfrnk/test
1CREATE DATABASE if not exists onlinebookstore;
2
3\c onlinebookstore
4
5CREATE TABLE if not exists books
6(
7barcode VARCHAR(100) PRIMARY KEY,
8name TEXT NOT NULL,
9author VARCHAR(100) NOT NULL,
10price INT,
11quantity REAL
12);
13
14CREATE TABLE if not exists users
15(
16username VARCHAR(100) PRIMARY KEY,
17password VARCHAR(100) NOT NULL,
18firstname VARCHAR(100) NOT NULL,
19lastname VARCHAR(100) NOT NULL,
20address TEXT NOT NULL,
21phone VARCHAR(100) NOT NULL,
22mailid VARCHAR(100) NOT NULL,
23usertype INT
24);