File tree Expand file tree Collapse file tree
20231116021507_manu_del_endpoint Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ CREATE TABLE "Manufacturer" (
6262 " name" TEXT NOT NULL ,
6363 " dateCreated" TIMESTAMP (3 ) NOT NULL ,
6464 " creatorId" INTEGER NOT NULL ,
65+ " dateDeleted" TIMESTAMP (3 ),
66+ " deletedByUserId" INTEGER ,
6567
6668 CONSTRAINT " Manufacturer_pkey" PRIMARY KEY (" name" )
6769);
@@ -98,3 +100,6 @@ ALTER TABLE "Material" ADD CONSTRAINT "Material_manufacturerName_fkey" FOREIGN K
98100
99101-- AddForeignKey
100102ALTER TABLE " Material" ADD CONSTRAINT " Material_unitName_fkey" FOREIGN KEY (" unitName" ) REFERENCES " Unit" (" name" ) ON DELETE SET NULL ON UPDATE CASCADE;
103+
104+ -- AddForeignKey
105+ ALTER TABLE " Manufacturer" ADD CONSTRAINT " Manufacturer_deletedByUserId_fkey" FOREIGN KEY (" deletedByUserId" ) REFERENCES " User" (" userId" ) ON DELETE SET NULL ON UPDATE CASCADE;
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ export const manufacturerTransformer = (
1212 return {
1313 name : manufacturer . name ,
1414 dateCreated : manufacturer . dateCreated ,
15- creatorId : manufacturer . creatorId
15+ creatorId : manufacturer . creatorId ,
16+ dateDeleted : manufacturer . dateDeleted ,
17+ deletedByUserId : manufacturer . deletedByUserId
1618 } ;
1719} ;
You can’t perform that action at this time.
0 commit comments