11 lines
321 B
SQL
11 lines
321 B
SQL
|
|
CREATE TABLE users (
|
|
id SERIAL PRIMARY KEY,
|
|
image_id INTEGER,
|
|
first_name VARCHAR NOT NULL,
|
|
last_name VARCHAR NOT NULL,
|
|
email VARCHAR NOT NULL,
|
|
password VARCHAR(64) NOT NULL,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
|
|
) |