process approval endpoint

This commit is contained in:
Fred KISSIE
2026-01-14 03:00:40 +01:00
parent d5b6a426a9
commit bc20a34a49
7 changed files with 149 additions and 4 deletions

View File

@@ -298,7 +298,7 @@ export const accessAuditLog = pgTable(
);
export const approvals = pgTable("approvals", {
id: serial("id").primaryKey(),
approvalId: serial("approvalId").primaryKey(),
timestamp: integer("timestamp").notNull(), // this is EPOCH time in seconds
orgId: varchar("orgId")
.references(() => orgs.orgId, {

View File

@@ -290,7 +290,7 @@ export const accessAuditLog = sqliteTable(
);
export const approvals = sqliteTable("approvals", {
id: integer("id").primaryKey({ autoIncrement: true }),
approvalId: integer("approvalId").primaryKey({ autoIncrement: true }),
timestamp: integer("timestamp").notNull(), // this is EPOCH time in seconds
orgId: text("orgId")
.references(() => orgs.orgId, {