-- CreateTable
CREATE TABLE `ArreteCaisse` (
    `id` INTEGER NOT NULL AUTO_INCREMENT,
    `fastFoodId` INTEGER NOT NULL,
    `caisseId` INTEGER NOT NULL,
    `createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
    `updatedAt` DATETIME(3) NOT NULL,

    UNIQUE INDEX `ArreteCaisse_caisseId_key`(`caisseId`),
    PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- AddForeignKey
ALTER TABLE `ArreteCaisse` ADD CONSTRAINT `ArreteCaisse_fastFoodId_fkey` FOREIGN KEY (`fastFoodId`) REFERENCES `FastFood`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE `ArreteCaisse` ADD CONSTRAINT `ArreteCaisse_caisseId_fkey` FOREIGN KEY (`caisseId`) REFERENCES `Caisse`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
