export const contactToCompany = pgTable(
"ContactToCompany",
{
contactId: integer().primaryKey()
companyId: integer().primaryKey()
},
(t) => [
index("ContactToCompany_contactId_companyId").on(
t.contactId,
t.companyId,
),
unique("ContactToCompany_contactId_companyId_key").on(
t.contactId,
t.companyId,
),
],
);
export const contactToCompany = pgTable(
"ContactToCompany",
{
contactId: integer().primaryKey()
companyId: integer().primaryKey()
},
(t) => [
index("ContactToCompany_contactId_companyId").on(
t.contactId,
t.companyId,
),
unique("ContactToCompany_contactId_companyId_key").on(
t.contactId,
t.companyId,
),
],
);