api/migrations/2023-12-29-191547_users/up.sql
2023-12-31 01:21:07 +01:00

13 lines
360 B
SQL

-- Your SQL goes here
CREATE TABLE IF NOT EXISTS users
(
id VARCHAR(24) DEFAULT nanoid(24),
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
password TEXT NOT NULL,
updated_at TIMESTAMP,
created_at TIMESTAMP DEFAULT now() NOT NULL,
PRIMARY KEY (id)
);