export const access = pgTable("access", {
id: text("id").primaryKey(),
role: roles("role").default("member"),
createdAt: timestamp("created_at", {
withTimezone: true,
mode: "date",
})
.defaultNow()
.notNull(),
organizationId: text("organization_id").references(() => organization.id),
userId: text("user_id").references(() => user.id),
});
export const access = pgTable("access", {
id: text("id").primaryKey(),
role: roles("role").default("member"),
createdAt: timestamp("created_at", {
withTimezone: true,
mode: "date",
})
.defaultNow()
.notNull(),
organizationId: text("organization_id").references(() => organization.id),
userId: text("user_id").references(() => user.id),
});