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

14 lines
351 B
MySQL
Raw Normal View History

2023-12-31 00:21:07 +00:00
-- Your SQL goes here
2024-01-01 02:18:33 +00:00
create table if not exists users
2023-12-31 00:21:07 +00:00
(
2024-01-01 02:18:33 +00:00
id varchar(24) default nanoid(24),
name varchar(255) not null,
email varchar(255) not null,
password text not null,
2023-12-31 00:21:07 +00:00
2024-01-01 02:18:33 +00:00
updated_at timestamp,
2024-01-01 22:58:26 +00:00
created_at timestamp default now(),
2023-12-31 00:21:07 +00:00
2024-01-01 02:18:33 +00:00
primary key (id)
2023-12-31 00:21:07 +00:00
);