create schema vendors;

create table vendors."TendorStatus"(
	"TenderStatusId" serial primary key,
	"Status" varchar(300)
);

create table vendors."PharmacyProductRequest"(
			"PharmacyProductRequestId" bigserial primary key,
			"PharmacyProductId" int references "PharmacyProduct"("PharmacyProductId"),
			"PharmacyStockId" int references "PharmacyStock"("PharmacyStockId"),
			"RolStocksId" text,
			"TenderStatusId" int references vendors."TendorStatus"(	"TenderStatusId"),
			"RaisedBy" int references "Account"("AccountId"),
			"RaisedDate" timestamp without time zone,
			"ApprovedBy" int references "Account"("AccountId"),
			"ApprovedDate" timestamp without time zone
);

insert into vendors."TendorStatus"("Status") values ('Pending');

alter table "SupplierProduct" add column "Mrp" numeric(10,2);
