-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazamon_db.sql
More file actions
51 lines (45 loc) · 1.16 KB
/
Copy pathazamon_db.sql
File metadata and controls
51 lines (45 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
drop database azamondb;
drop user azamon;
create user azamon with password 'password';
create database azamondb with template=template0 owner=azamon;
\connect azamondb;
alter default privileges grant all on tables to azamon;
alter default privileges grant all on sequences to azamon;
create table et_admin(
id SERIAL primary key not null,
name varchar(20) not null,
surname varchar(20) not null,
email varchar(30) not null,
password text not null,
secret_key text not null,
IV text not null
);
create table et_employee(
id SERIAL primary key not null,
name varchar(20) not null,
surname varchar(20) not null,
email varchar(30) not null,
password text not null,
secret_key text not null,
IV text not null
);
create table et_users(
id SERIAL primary key not null,
name varchar(20) not null,
surname varchar(20) not null,
email varchar(30) not null,
password text not null,
secret_key text not null,
IV text not null
);
create table et_books(
id SERIAL primary key not null,
title varchar(20) not null,
description varchar(50) not null,
author varchar(20) not null,
genre varchar(20) not null
);
create table et_orders(
id SERIAL primary key not null,
email varchar(20) not null
);