-
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 #87 from AII-the-time/refactor/testing
Refactor: testing
- Loading branch information
Showing
86 changed files
with
3,240 additions
and
3,290 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ if [ "$NODE_ENV" = "production" ]; then | |
npm run prisma:deploy | ||
else | ||
npm run prisma | ||
npm run seed | ||
|
||
fi | ||
npm run dev |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,87 @@ | ||
-- AlterTable | ||
ALTER TABLE `Category` ADD COLUMN `deletedAt` DATETIME(3) NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE `Menu` ADD COLUMN `deletedAt` DATETIME(3) NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE `Option` ADD COLUMN `deletedAt` DATETIME(3) NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE `Order` ADD COLUMN `deletedAt` DATETIME(3) NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE `PreOrder` ADD COLUMN `deletedAt` DATETIME(3) NULL; | ||
|
||
-- CreateTable | ||
CREATE TABLE `Recipe` ( | ||
`id` INTEGER NOT NULL AUTO_INCREMENT, | ||
`menuId` INTEGER NOT NULL, | ||
`stockId` INTEGER NULL, | ||
`mixedStockId` INTEGER NULL, | ||
`coldRegularAmount` INTEGER NULL, | ||
`coldSizeUpAmount` INTEGER NULL, | ||
`hotRegularAmount` INTEGER NULL, | ||
`hotSizeUpAmount` INTEGER NULL, | ||
|
||
PRIMARY KEY (`id`) | ||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
|
||
-- CreateTable | ||
CREATE TABLE `Stock` ( | ||
`id` INTEGER NOT NULL AUTO_INCREMENT, | ||
`updatedAt` DATETIME(3) NOT NULL, | ||
`storeId` INTEGER NOT NULL, | ||
`name` VARCHAR(191) NOT NULL, | ||
`amount` INTEGER NULL, | ||
`unit` VARCHAR(191) NULL, | ||
`price` DECIMAL(65, 30) NULL, | ||
`currentAmount` INTEGER NULL, | ||
`noticeThreshold` INTEGER NOT NULL DEFAULT 0, | ||
`deletedAt` DATETIME(3) NULL, | ||
|
||
PRIMARY KEY (`id`) | ||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
|
||
-- CreateTable | ||
CREATE TABLE `MixedStock` ( | ||
`id` INTEGER NOT NULL AUTO_INCREMENT, | ||
`storeId` INTEGER NOT NULL, | ||
`name` VARCHAR(191) NOT NULL, | ||
`totalAmount` INTEGER NULL, | ||
`unit` VARCHAR(191) NULL, | ||
`deletedAt` DATETIME(3) NULL, | ||
|
||
PRIMARY KEY (`id`) | ||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
|
||
-- CreateTable | ||
CREATE TABLE `Mixing` ( | ||
`id` INTEGER NOT NULL AUTO_INCREMENT, | ||
`mixedStockId` INTEGER NOT NULL, | ||
`stockId` INTEGER NOT NULL, | ||
`amount` INTEGER NOT NULL, | ||
|
||
PRIMARY KEY (`id`) | ||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `Recipe` ADD CONSTRAINT `Recipe_menuId_fkey` FOREIGN KEY (`menuId`) REFERENCES `Menu`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `Recipe` ADD CONSTRAINT `Recipe_stockId_fkey` FOREIGN KEY (`stockId`) REFERENCES `Stock`(`id`) ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `Recipe` ADD CONSTRAINT `Recipe_mixedStockId_fkey` FOREIGN KEY (`mixedStockId`) REFERENCES `MixedStock`(`id`) ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `Stock` ADD CONSTRAINT `Stock_storeId_fkey` FOREIGN KEY (`storeId`) REFERENCES `Store`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `MixedStock` ADD CONSTRAINT `MixedStock_storeId_fkey` FOREIGN KEY (`storeId`) REFERENCES `Store`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `Mixing` ADD CONSTRAINT `Mixing_mixedStockId_fkey` FOREIGN KEY (`mixedStockId`) REFERENCES `MixedStock`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `Mixing` ADD CONSTRAINT `Mixing_stockId_fkey` FOREIGN KEY (`stockId`) REFERENCES `Stock`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE; |
Oops, something went wrong.