public class StoreContact
{
public Guid StoreId { get; set; }
public Store Store { get; set; }
public Guid ContactId { get; set; }
public Contact Contact { get; set; }
public string Password { get; set; }
}
-- Table: public.store_contacts
-- DROP TABLE IF EXISTS public.store_contacts;
CREATE TABLE IF NOT EXISTS public.store_contacts
(
"StoreId" uuid NOT NULL,
"ContactId" uuid NOT NULL,
"Password" text COLLATE pg_catalog."default",
CONSTRAINT "PK_store_contacts" PRIMARY KEY ("ContactId", "StoreId"),
CONSTRAINT "FK_store_contacts_contacts_ContactId" FOREIGN KEY ("ContactId")
REFERENCES public.contacts ("Id") MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE RESTRICT,
CONSTRAINT "FK_store_contacts_stors_StoreId" FOREIGN KEY ("StoreId")
REFERENCES public.stors ("Id") MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE RESTRICT
)
TABLESPACE pg_default;
ALTER TABLE IF EXISTS public.store_contacts
OWNER to eggcloud;
-- Index: IX_store_contacts_StoreId
-- DROP INDEX IF EXISTS public."IX_store_contacts_StoreId";
CREATE INDEX IF NOT EXISTS "IX_store_contacts_StoreId"
ON public.store_contacts USING btree
("StoreId" ASC NULLS LAST)
TABLESPACE pg_default;
// что это????? Какой сущности в проекте он соответствует
var someArray = [1,2,3,4,5,6];