-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added flyway migrations for db and core table
- Loading branch information
1 parent
cb11fd2
commit e8e4f4c
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
src/main/resources/db.migration/V20240131091231__create_db_expensys.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create DATABASE expensys; |
9 changes: 9 additions & 0 deletions
9
src/main/resources/db.migration/V20240131091358__create_table_expenses.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |