Ensure the user's actions

This commit is contained in:
Owen Schwartz
2024-10-10 21:59:30 -04:00
parent 143a3b756e
commit 4fc630cf42
9 changed files with 74 additions and 63 deletions

View File

@@ -138,6 +138,7 @@ export const actions = sqliteTable("actions", {
export const roles = sqliteTable("roles", {
roleId: integer("roleId").primaryKey({ autoIncrement: true }),
orgId: integer("orgId").references(() => orgs.orgId, { onDelete: "cascade" }),
isSuperuserRole: integer("isSuperuserRole", { mode: "boolean" }),
name: text("name").notNull(),
description: text("description"),
});