export const customersTable = pgTable("customers", {
id: serial('id').primaryKey(),
first_name: text('first_name'),
last_name: text('last_name'),
email: text('email'),
tenant_id: integer('tenant_id').references(() => tenantsTable.id, { onDelete: 'cascade' }).notNull()
}, (t) => ({
unq: unique().on(t.email, t.tenant_id).nullsNotDistinct()
}));
export const customersTable = pgTable("customers", {
id: serial('id').primaryKey(),
first_name: text('first_name'),
last_name: text('last_name'),
email: text('email'),
tenant_id: integer('tenant_id').references(() => tenantsTable.id, { onDelete: 'cascade' }).notNull()
}, (t) => ({
unq: unique().on(t.email, t.tenant_id).nullsNotDistinct()
}));