Debian Codegraph @

tests/postgres/migrations/2_post.sql

raw
1 create table post (
2 post_id uuid primary key default uuid_generate_v1mc(),
3 user_id uuid not null references "user"(user_id),
4 content text not null,
5 created_at timestamptz default now()
6 );
7
8 create index on post(created_at desc);