mirror of
https://github.com/launchbadge/sqlx
synced 2024-09-20 14:21:57 +00:00
8 lines
244 B
SQL
8 lines
244 B
SQL
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);
|