api/migrations/2023-12-29-191547_users/up.sql

14 lines
360 B
MySQL
Raw Normal View History

2023-12-31 00:21:07 +00:00
-- 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)
);