added vendors table

This commit is contained in:
2026-01-27 12:23:59 -05:00
parent ecd7182153
commit 3aa9b6f325
20 changed files with 1058 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
/*
Warnings:
- You are about to drop the column `addressId` on the `Vendor` table. All the data in the column will be lost.
- Added the required column `address` to the `Vendor` table without a default value. This is not possible if the table is not empty.
- Added the required column `city` to the `Vendor` table without a default value. This is not possible if the table is not empty.
- Added the required column `postalCode` to the `Vendor` table without a default value. This is not possible if the table is not empty.
- Added the required column `state` to the `Vendor` table without a default value. This is not possible if the table is not empty.
*/
-- DropForeignKey
ALTER TABLE "Vendor" DROP CONSTRAINT "Vendor_addressId_fkey";
-- AlterTable
ALTER TABLE "Vendor" DROP COLUMN "addressId",
ADD COLUMN "address" TEXT NOT NULL,
ADD COLUMN "city" TEXT NOT NULL,
ADD COLUMN "country" TEXT NOT NULL DEFAULT 'United States',
ADD COLUMN "postalCode" TEXT NOT NULL,
ADD COLUMN "state" TEXT NOT NULL;