Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
-- `gen_random_uuid()` wasn't added until Postgres 13
create extension if not exists "uuid-ossp";
+5
View File
@@ -0,0 +1,5 @@
create table "user"
(
user_id uuid primary key default uuid_generate_v1mc(),
username text unique not null
);
+8
View File
@@ -0,0 +1,8 @@
create table post (
post_id uuid primary key default uuid_generate_v1mc(),
user_id uuid not null references "user"(user_id),
content text not null,
created_at timestamptz default now()
);
create index on post(created_at desc);
+9
View File
@@ -0,0 +1,9 @@
create table comment (
comment_id uuid primary key default uuid_generate_v1mc(),
post_id uuid not null references post(post_id),
user_id uuid not null references "user"(user_id),
content text not null,
created_at timestamptz not null default now()
);
create index on comment(created_at desc);