feat(#21): Replaced chat comment component with proper cursor-based commenting
This commit is contained in:
@@ -1,53 +1,53 @@
|
||||
create table app_user
|
||||
(
|
||||
email_on_form_created boolean not null,
|
||||
email_on_form_submitted boolean not null,
|
||||
created_at timestamp(6) not null,
|
||||
modified_at timestamp(6) not null,
|
||||
email_on_form_created boolean not null,
|
||||
email_on_form_submitted boolean not null,
|
||||
created_at timestamp(6) with time zone not null,
|
||||
modified_at timestamp(6) with time zone not null,
|
||||
email varchar(255),
|
||||
keycloak_id varchar(255) not null,
|
||||
name varchar(255) not null,
|
||||
keycloak_id varchar(255) not null,
|
||||
name varchar(255) not null,
|
||||
organization_id varchar(255),
|
||||
primary key (keycloak_id)
|
||||
);
|
||||
|
||||
create table application_form
|
||||
(
|
||||
is_template boolean not null,
|
||||
created_at timestamp(6) not null,
|
||||
modified_at timestamp(6) not null,
|
||||
id uuid not null,
|
||||
created_by_id varchar(255) not null,
|
||||
last_modified_by_id varchar(255) not null,
|
||||
name varchar(255) not null,
|
||||
is_template boolean not null,
|
||||
created_at timestamp(6) with time zone not null,
|
||||
modified_at timestamp(6) with time zone not null,
|
||||
id uuid not null,
|
||||
created_by_id varchar(255) not null,
|
||||
last_modified_by_id varchar(255) not null,
|
||||
name varchar(255) not null,
|
||||
organization_id varchar(255),
|
||||
status varchar(255) not null check (status in ('DRAFT', 'SUBMITTED', 'APPROVED', 'REJECTED', 'SIGNED')),
|
||||
status varchar(255) not null check (status in ('DRAFT', 'SUBMITTED', 'APPROVED', 'REJECTED', 'SIGNED')),
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table application_form_version
|
||||
(
|
||||
version_number integer not null,
|
||||
created_at timestamp(6) not null,
|
||||
application_form_id uuid not null,
|
||||
id uuid not null,
|
||||
created_by_id varchar(255) not null,
|
||||
name varchar(255) not null,
|
||||
organization_id varchar(255) not null,
|
||||
snapshot_data TEXT not null,
|
||||
status varchar(255) not null check (status in ('DRAFT', 'SUBMITTED', 'APPROVED', 'REJECTED', 'SIGNED')),
|
||||
version_number integer not null,
|
||||
created_at timestamp(6) with time zone not null,
|
||||
application_form_id uuid not null,
|
||||
id uuid not null,
|
||||
created_by_id varchar(255) not null,
|
||||
name varchar(255) not null,
|
||||
organization_id varchar(255) not null,
|
||||
snapshot_data TEXT not null,
|
||||
status varchar(255) not null check (status in ('DRAFT', 'SUBMITTED', 'APPROVED', 'REJECTED', 'SIGNED')),
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table comment
|
||||
(
|
||||
created_at timestamp(6) not null,
|
||||
modified_at timestamp(6) not null,
|
||||
application_form_id uuid not null,
|
||||
form_element_id uuid not null,
|
||||
id uuid not null,
|
||||
created_by_id varchar(255) not null,
|
||||
message varchar(255) not null,
|
||||
created_at timestamp(6) with time zone not null,
|
||||
modified_at timestamp(6) with time zone not null,
|
||||
application_form_id uuid not null,
|
||||
form_element_id uuid not null,
|
||||
id uuid not null,
|
||||
created_by_id varchar(255) not null,
|
||||
message TEXT not null,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
@@ -109,16 +109,16 @@ create table form_element_sub_section
|
||||
|
||||
create table notification
|
||||
(
|
||||
is_read boolean not null,
|
||||
created_at timestamp(6) not null,
|
||||
id uuid not null,
|
||||
click_target varchar(255) not null,
|
||||
message TEXT not null,
|
||||
organization_id varchar(255) not null,
|
||||
is_read boolean not null,
|
||||
created_at timestamp(6) with time zone not null,
|
||||
id uuid not null,
|
||||
click_target varchar(255) not null,
|
||||
message TEXT not null,
|
||||
organization_id varchar(255) not null,
|
||||
recipient_id varchar(255),
|
||||
target_roles TEXT,
|
||||
title varchar(255) not null,
|
||||
type varchar(255) not null check (type in ('INFO', 'WARNING', 'ERROR')),
|
||||
title varchar(255) not null,
|
||||
type varchar(255) not null check (type in ('INFO', 'WARNING', 'ERROR')),
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
@@ -136,9 +136,7 @@ alter table if exists application_form_version
|
||||
add constraint FKpfri4lhy9wqfsp8esabedkq6c
|
||||
foreign key (application_form_id)
|
||||
references application_form
|
||||
on
|
||||
delete
|
||||
cascade;
|
||||
on delete cascade;
|
||||
|
||||
alter table if exists application_form_version
|
||||
add constraint FKl6fbcrvh439gbwgcvvfyxaggi
|
||||
|
||||
Reference in New Issue
Block a user