9 lines
297 B
MySQL
9 lines
297 B
MySQL
|
CREATE TABLE IF NOT EXISTS users (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
username TEXT NOT NULL,
|
||
|
password TEXT NOT NULL,
|
||
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||
|
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||
|
);
|
||
|
|
||
|
create index users_username_index on users (username);
|