Files
huike-back/htyws_models/migrations/2022-05-20-113811_add_comments_tbl/up.sql
T
weli 44c320d8fa chore add core rust project files and diesel migrations
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline.

Made-with: Cursor
2026-04-23 17:20:01 +08:00

20 lines
428 B
SQL

-- Your SQL goes here
create table comments
(
id varchar not null
constraint comments_pk
primary key,
ref_id varchar not null,
ref_type varchar not null,
parent_id varchar,
created_at timestamp not null,
created_by varchar not null,
creator_name varchar,
content jsonb
);
create unique index comments_id_uindex
on comments (id);