/*
  Warnings:

  - You are about to drop the column `canManageProducts` on the `user` table. All the data in the column will be lost.
  - You are about to drop the column `canPurchaseProducts` on the `user` table. All the data in the column will be lost.
  - You are about to drop the column `canViewProducts` on the `user` table. All the data in the column will be lost.
  - You are about to drop the `category` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `download` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `product` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `purchase` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `scriptversion` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `subscription` table. If the table is not empty, all the data it contains will be lost.

*/
-- DropForeignKey
ALTER TABLE `download` DROP FOREIGN KEY `Download_purchaseId_fkey`;

-- DropForeignKey
ALTER TABLE `download` DROP FOREIGN KEY `Download_scriptVersionId_fkey`;

-- DropForeignKey
ALTER TABLE `product` DROP FOREIGN KEY `Product_categoryId_fkey`;

-- DropForeignKey
ALTER TABLE `purchase` DROP FOREIGN KEY `Purchase_productId_fkey`;

-- DropForeignKey
ALTER TABLE `purchase` DROP FOREIGN KEY `Purchase_userId_fkey`;

-- DropForeignKey
ALTER TABLE `scriptversion` DROP FOREIGN KEY `ScriptVersion_productId_fkey`;

-- DropForeignKey
ALTER TABLE `subscription` DROP FOREIGN KEY `Subscription_userId_fkey`;

-- AlterTable
ALTER TABLE `user` DROP COLUMN `canManageProducts`,
    DROP COLUMN `canPurchaseProducts`,
    DROP COLUMN `canViewProducts`;

-- DropTable
DROP TABLE `category`;

-- DropTable
DROP TABLE `download`;

-- DropTable
DROP TABLE `product`;

-- DropTable
DROP TABLE `purchase`;

-- DropTable
DROP TABLE `scriptversion`;

-- DropTable
DROP TABLE `subscription`;
