Files
huike-back/htyws_models/migrations/2022-05-20-113811_add_comments_tbl/up.sql
T

20 lines
428 B
SQL
Raw Normal View History

-- 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);