9 lines
309 B
SQL
9 lines
309 B
SQL
CREATE TABLE `users` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`email` text NOT NULL,
|
|
`password_hash` text NOT NULL,
|
|
`nickname` text NOT NULL,
|
|
`created_at` integer DEFAULT (strftime('%s', 'now')) NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `users_email_unique` ON `users` (`email`); |