12 lines
382 B
MySQL
12 lines
382 B
MySQL
|
-- Create table
|
||
|
CREATE TABLE users (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
email VARCHAR(255) NOT NULL,
|
||
|
password VARCHAR NULL,
|
||
|
reset_password_token VARCHAR(150) NULL,
|
||
|
time_create BIGINT NOT NULL,
|
||
|
time_gen_reset_token BIGINT NOT NULL DEFAULT 0,
|
||
|
time_activate BIGINT NOT NULL DEFAULT 0,
|
||
|
active BOOLEAN NOT NULL DEFAULT TRUE,
|
||
|
admin BOOLEAN NOT NULL DEFAULT FALSE
|
||
|
)
|