Source client info into schema

This commit is contained in:
Owen
2026-03-23 20:05:54 -07:00
parent 0d4edcd1c7
commit fe40ea58c1
3 changed files with 73 additions and 3 deletions

View File

@@ -319,6 +319,12 @@ export const connectionAuditLog = pgTable(
siteId: integer("siteId").references(() => sites.siteId, {
onDelete: "cascade"
}),
clientId: integer("clientId").references(() => clients.clientId, {
onDelete: "cascade"
}),
userId: text("userId").references(() => users.userId, {
onDelete: "cascade"
}),
sourceAddr: text("sourceAddr").notNull(),
destAddr: text("destAddr").notNull(),
protocol: text("protocol").notNull(),

View File

@@ -309,6 +309,12 @@ export const connectionAuditLog = sqliteTable(
siteId: integer("siteId").references(() => sites.siteId, {
onDelete: "cascade"
}),
clientId: integer("clientId").references(() => clients.clientId, {
onDelete: "cascade"
}),
userId: text("userId").references(() => users.userId, {
onDelete: "cascade"
}),
sourceAddr: text("sourceAddr").notNull(),
destAddr: text("destAddr").notNull(),
protocol: text("protocol").notNull(),