-- CreateTable
CREATE TABLE `stripe_connects` (
    `id` INTEGER NOT NULL AUTO_INCREMENT,
    `stripe_id` VARCHAR(255) NOT NULL,
    `user_id` INTEGER NOT NULL,
    `status` VARCHAR(255) NOT NULL,
    `createdAt` DATETIME(3) NOT NULL,
    `updatedAt` DATETIME(3) NOT NULL,

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

-- AddForeignKey
ALTER TABLE `stripe_connects` ADD CONSTRAINT `stripe_connects_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
