-- AlterTable
ALTER TABLE `Session` MODIFY `data` MEDIUMTEXT NOT NULL;

-- CreateTable
CREATE TABLE `profiles` (
    `id` VARCHAR(255) NOT NULL,
    `bio` TEXT NULL,
    `image_url` VARCHAR(255) NULL,
    `user_id` VARCHAR(255) NOT NULL,
    `created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
    `updated_at` DATETIME(3) NOT NULL,

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

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