first commit
This commit is contained in:
11
cmd/migrate/migrations/20240318192427_add-user-table.up.sql
Normal file
11
cmd/migrate/migrations/20240318192427_add-user-table.up.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`firstName` VARCHAR(255) NOT NULL,
|
||||
`lastName` VARCHAR(255) NOT NULL,
|
||||
`email` VARCHAR(255) NOT NULL,
|
||||
`password` VARCHAR(255) NOT NULL,
|
||||
`createdAt` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY (email)
|
||||
);
|
||||
Reference in New Issue
Block a user