1
|
CREATE TABLE role_verification (
|
2
|
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
|
verification_type VARCHAR(255) NOT NULL,
|
8
|
date TIMESTAMP NOT NULL
|
9
|
);
|
10
|
|
11
|
GRANT ALL PRIVILEGES ON TABLE role_verification TO postgresi2;
|
12
|
|
13
|
CREATE TABLE registered_service (
|
14
|
id SERIAL PRIMARY KEY,
|
15
|
client_id VARCHAR(255) NOT NULL,
|
16
|
owner VARCHAR(255) NOT NULL,
|
17
|
name VARCHAR(255) NOT NULL,
|
18
|
creation_date TIMESTAMP NOT NULL,
|
19
|
registration_access_token TEXT NOT NULL,
|
20
|
key_type VARCHAR(255)
|
21
|
);
|
22
|
|
23
|
GRANT ALL PRIVILEGES ON TABLE registered_service TO postgresi2;
|
24
|
GRANT USAGE, SELECT ON SEQUENCE registered_service_id_seq TO postgresi2;
|
25
|
|
26
|
|