Files
huike-back/htyws_models/migrations/2023-07-12-165202_add_versioned_data_table/up.sql
T

14 lines
328 B
SQL
Raw Normal View History

-- Your SQL goes here
create table versioned_data
(
id varchar not null primary key unique,
ref_id varchar not null,
ref_type varchar not null,
created_at timestamp not null,
create_by varchar not null,
data_type varchar not null,
from_data jsonb,
to_data jsonb
);