feat(backend,api): Add comment

This commit is contained in:
2025-05-04 10:35:29 +02:00
parent 324c534fdf
commit 6a751285dc
13 changed files with 184 additions and 11 deletions

View File

@@ -13,6 +13,18 @@ create table application_form
primary key (id)
);
create table comment
(
created_at timestamp(6) not null,
modified_at timestamp(6) not null,
form_element_id uuid not null,
id uuid not null,
created_by_id varchar(255) not null,
created_by_name varchar(255) not null,
message varchar(255) not null,
primary key (id)
);
create table form_element_options
(
employee_data_category tinyint not null check (employee_data_category between 0 and 3),
@@ -30,6 +42,11 @@ create table form_element
primary key (id)
);
alter table if exists comment
add constraint FKfg84w0i76tw9os13950272c6f
foreign key (form_element_id)
references form_element;
alter table if exists form_element_options
add constraint FKnq0lpby5nspv1xi27n9el6us6
foreign key (form_element_id)