Project

General

Profile

1 59503 k.triantaf
CREATE TABLE role_verification (
2 59216 k.triantaf
	id VARCHAR(255) PRIMARY KEY,
3
	email VARCHAR(255) NOT NULL,
4
	verification_code  VARCHAR(6) NOT NULL,
5
	type VARCHAR(255) NOT NULL,
6
	entity VARCHAR(255) NOT NULL,
7 59503 k.triantaf
	verification_type VARCHAR(255) NOT NULL,
8 59216 k.triantaf
	date TIMESTAMP NOT NULL
9 59503 k.triantaf
);
10
11 59516 katerina.i
GRANT ALL PRIVILEGES ON TABLE role_verification TO postgresi2;
12
13
CREATE TABLE registered_service (
14
 id SERIAL PRIMARY KEY,
15 59805 k.triantaf
 client_id VARCHAR(255) NOT NULL,
16 59516 katerina.i
 owner VARCHAR(255) NOT NULL,
17
 name VARCHAR(255) NOT NULL,
18 59805 k.triantaf
 creation_date TIMESTAMP NOT NULL,
19 59823 k.triantaf
 registration_access_token TEXT NOT NULL,
20
 key_type VARCHAR(255)
21 59516 katerina.i
);
22
23
GRANT ALL PRIVILEGES ON TABLE registered_service TO postgresi2;
24
GRANT USAGE, SELECT ON SEQUENCE registered_service_id_seq TO postgresi2;
25