feat: create initial database schema
This commit is contained in:
parent
00bd014cdd
commit
875a6d1a33
11 changed files with 155 additions and 0 deletions
4
sql/migrations/20240129183014_create_url_table.sql
Normal file
4
sql/migrations/20240129183014_create_url_table.sql
Normal file
|
@ -0,0 +1,4 @@
|
|||
-- Create "urls" table
|
||||
CREATE TABLE "public"."urls" ("id" serial NOT NULL, "hash" text NOT NULL, "long_url" text NOT NULL, PRIMARY KEY ("id"));
|
||||
-- Create index "urls_hash_key" to table: "urls"
|
||||
CREATE UNIQUE INDEX "urls_hash_key" ON "public"."urls" ("hash");
|
2
sql/migrations/atlas.sum
Normal file
2
sql/migrations/atlas.sum
Normal file
|
@ -0,0 +1,2 @@
|
|||
h1:iaq5N24NlZigxTmAlrTtB5kyXb52a+gVSEHYpfgvvwE=
|
||||
20240129183014_create_url_table.sql h1:k/l+yABFDePCCXnnZ4OM9k47oE4CdvvN6tjSCZelAo0=
|
Loading…
Add table
Add a link
Reference in a new issue