2023-05-24 11:52:24 +00:00
|
|
|
-- Create table
|
|
|
|
CREATE TABLE users (
|
|
|
|
id SERIAL PRIMARY KEY,
|
2023-05-24 12:38:18 +00:00
|
|
|
name VARCHAR(30) NOT NULL,
|
2023-05-24 11:52:24 +00:00
|
|
|
email VARCHAR(255) NOT NULL,
|
|
|
|
password VARCHAR NULL,
|
|
|
|
time_create BIGINT NOT NULL,
|
2023-06-06 07:47:52 +00:00
|
|
|
reset_password_token VARCHAR(150) NULL,
|
2023-05-24 11:52:24 +00:00
|
|
|
time_gen_reset_token BIGINT NOT NULL DEFAULT 0,
|
2023-06-06 07:47:52 +00:00
|
|
|
delete_account_token VARCHAR(150) NULL,
|
|
|
|
time_gen_delete_account_token BIGINT NOT NULL DEFAULT 0,
|
2023-05-24 11:52:24 +00:00
|
|
|
time_activate BIGINT NOT NULL DEFAULT 0,
|
|
|
|
active BOOLEAN NOT NULL DEFAULT TRUE,
|
|
|
|
admin BOOLEAN NOT NULL DEFAULT FALSE
|
|
|
|
)
|