FrostByte/server/migrations/0001_users_table.sql

9 lines
298 B
MySQL
Raw Normal View History

2023-10-10 00:03:04 +02:00
CREATE TABLE IF NOT EXISTS users (
2023-10-20 20:57:58 +02:00
id INTEGER PRIMARY KEY,
2023-10-10 00:03:04 +02:00
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);