Skip to content

Commit

Permalink
added flyway migrations for db and core table
Browse files Browse the repository at this point in the history
  • Loading branch information
pradipmudi committed Jan 31, 2024
1 parent cb11fd2 commit e8e4f4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
create DATABASE expensys;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE `expenses` (
`id` bigint NOT NULL AUTO_INCREMENT,
`date` date NOT NULL,
`item` varchar(255) NOT NULL,
`category` enum('GROCERIES','VEGETABLES_FRUITS_DAIRY_AND_MEAT','MEDICAL','OUTSIDE_FOOD','LOSE_OF_MONEY','SALON_AND_COSMETICS','TRANSPORT','SHOPPING','ENTERTAINMENT','RENT_AND_OTHER_BILLS','OTHERS') NOT NULL,
`spent` double NOT NULL,
`spent_by` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

0 comments on commit e8e4f4c

Please sign in to comment.