feat: update quotation endpoints with permission
This commit is contained in:
parent
3ee1f5ed0f
commit
56c2f1d5ed
3 changed files with 158 additions and 128 deletions
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `actorName` to the `Quotation` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `contactName` to the `Quotation` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `contactTel` to the `Quotation` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `documentReceivePoint` to the `Quotation` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `dueDate` to the `Quotation` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `workName` to the `Quotation` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "Quotation" DROP CONSTRAINT "Quotation_customerId_fkey";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Quotation" ADD COLUMN "actorName" TEXT NOT NULL,
|
||||
ADD COLUMN "contactName" TEXT NOT NULL,
|
||||
ADD COLUMN "contactTel" TEXT NOT NULL,
|
||||
ADD COLUMN "documentReceivePoint" TEXT NOT NULL,
|
||||
ADD COLUMN "dueDate" DATE NOT NULL,
|
||||
ADD COLUMN "workName" TEXT NOT NULL,
|
||||
ALTER COLUMN "customerId" DROP NOT NULL;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Quotation" ADD CONSTRAINT "Quotation_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "Customer"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
Loading…
Add table
Add a link
Reference in a new issue