summaryrefslogtreecommitdiffstats
path: root/migrations/20240412153145_create_credential.up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/20240412153145_create_credential.up.sql')
-rw-r--r--migrations/20240412153145_create_credential.up.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/migrations/20240412153145_create_credential.up.sql b/migrations/20240412153145_create_credential.up.sql
new file mode 100644
index 0000000..a2f0920
--- /dev/null
+++ b/migrations/20240412153145_create_credential.up.sql
@@ -0,0 +1,8 @@
+CREATE EXTENSION "uuid-ossp";
+
+CREATE TABLE credential (
+ id UUID NOT NULL PRIMARY KEY DEFAULT uuid_generate_v4(),
+ password_hash VARCHAR(100) NOT NULL,
+ created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
+ updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
+);