Skip to content

Commit

Permalink
fix: sql 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
facewise committed May 8, 2024
1 parent 9c183d2 commit 94f9c2c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CREATE TABLE `bread_diary_event` (
`diary_id` bigint PRIMARY KEY ,
`state` ENUM ('PENDING', 'ACCEPTED', 'REJECTED') NOT NULL DEFAULT 'PENDING',
`state` varchar(255) NOT NULL DEFAULT 'PENDING',
`point` int NOT NULL DEFAULT 0,
`description` string NOT NULL DEFAULT '',
`description` varchar(4000) NOT NULL DEFAULT '',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
);
Expand All @@ -15,8 +15,8 @@ CREATE TABLE `point_history` (
`grand_total_point` int NOT NULL DEFAULT 0,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`type` ENUM ('BREAD_DIARY', 'ETC') NOT NULL DEFAULT 'ETC',
`description` string NOT NULL DEFAULT ''
`type` varchar(255) NOT NULL DEFAULT 'ETC',
`description` varchar(4000) NOT NULL DEFAULT ''
);

CREATE TABLE `user_point` (
Expand Down

0 comments on commit 94f9c2c

Please sign in to comment.