first commit
This commit is contained in:
1
internal/db/schema/000001_init_schema.down.sql
Normal file
1
internal/db/schema/000001_init_schema.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE "users";
|
||||
7
internal/db/schema/000001_init_schema.up.sql
Normal file
7
internal/db/schema/000001_init_schema.up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE "users" (
|
||||
"id" varchar NOT NULL PRIMARY KEY,
|
||||
"username" varchar NOT NULL,
|
||||
"hashed_password" varchar NOT NULL,
|
||||
"email" varchar NOT NULL,
|
||||
"created_at" timestamptz NOT NULL DEFAULT (now())
|
||||
);
|
||||
Reference in New Issue
Block a user