Skip to content

Commit

Permalink
SQL schema file created
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh2804 committed Nov 14, 2023
1 parent d4e0b34 commit 902a1d8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/resources/shema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
drop table if exists task;
create table task
(
due_date datetime(6) null,
task_id bigint auto_increment
primary key,
description varchar(255) null,
priority enum ('HIGH', 'LOW', 'MEDIUM') null,
status varchar(255) null,
title varchar(255) null
);

drop table if exists comment;
create table comment
(
cmt_id bigint auto_increment
primary key,
date datetime(6) null,
task_id bigint null,
comment tinytext null,
constraint FKfknte4fhjhet3l1802m1yqa50
foreign key (task_id) references task (task_id)
);

0 comments on commit 902a1d8

Please sign in to comment.