-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Finboost/dev-arman
feat: update db schema, seeder, docs, and api for user profile
- Loading branch information
Showing
11 changed files
with
224 additions
and
5 deletions.
There are no files selected for viewing
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
6 changes: 6 additions & 0 deletions
6
prisma/migrations/20240615093224_add_field_on_profile/migration.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,6 @@ | ||
-- AlterTable | ||
ALTER TABLE `profiles` ADD COLUMN `incomePerMonth` INTEGER NULL, | ||
ADD COLUMN `insurance` ENUM('Saham', 'Reksadana', 'Obligasi', 'Emas', 'Cryptocurrency') NULL, | ||
ADD COLUMN `investment` ENUM('Saham', 'Reksadana', 'Obligasi', 'Emas', 'Cryptocurrency') NULL, | ||
ADD COLUMN `totalDebt` INTEGER NULL, | ||
ADD COLUMN `totalSaving` INTEGER NULL; |
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20240615093721_add_about_field_on_profile/migration.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,2 @@ | ||
-- AlterTable | ||
ALTER TABLE `profiles` ADD COLUMN `about` VARCHAR(191) NULL; |
4 changes: 4 additions & 0 deletions
4
prisma/migrations/20240615101729_change_int_to_bigint/migration.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,4 @@ | ||
-- AlterTable | ||
ALTER TABLE `profiles` MODIFY `incomePerMonth` BIGINT NULL, | ||
MODIFY `totalDebt` BIGINT NULL, | ||
MODIFY `totalSaving` BIGINT NULL; |
4 changes: 4 additions & 0 deletions
4
prisma/migrations/20240615103211_change_bigint_to_decimal/migration.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,4 @@ | ||
-- AlterTable | ||
ALTER TABLE `profiles` MODIFY `incomePerMonth` DECIMAL(65, 30) NULL, | ||
MODIFY `totalDebt` DECIMAL(65, 30) NULL, | ||
MODIFY `totalSaving` DECIMAL(65, 30) NULL; |
12 changes: 12 additions & 0 deletions
12
prisma/migrations/20240615105605_formatting_decimal/migration.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,12 @@ | ||
/* | ||
Warnings: | ||
- You are about to alter the column `incomePerMonth` on the `profiles` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(25,2)`. | ||
- You are about to alter the column `totalDebt` on the `profiles` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(25,2)`. | ||
- You are about to alter the column `totalSaving` on the `profiles` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(25,2)`. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE `profiles` MODIFY `incomePerMonth` DECIMAL(25, 2) NULL, | ||
MODIFY `totalDebt` DECIMAL(25, 2) NULL, | ||
MODIFY `totalSaving` DECIMAL(25, 2) NULL; |
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
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
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
Oops, something went wrong.