mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 05:19:49 +00:00
feat: added heartbeat and fixed up gateway page
This commit is contained in:
@@ -120,6 +120,8 @@ export async function up(knex: Knex): Promise<void> {
|
||||
t.foreign("proxyId").references("id").inTable(TableName.Proxy).onDelete("SET NULL");
|
||||
|
||||
t.string("name").notNullable().unique();
|
||||
|
||||
t.dateTime("heartbeat");
|
||||
});
|
||||
|
||||
await createOnUpdateTrigger(knex, TableName.GatewayV2);
|
||||
|
||||
@@ -14,7 +14,8 @@ export const GatewaysV2Schema = z.object({
|
||||
orgId: z.string().uuid(),
|
||||
identityId: z.string().uuid(),
|
||||
proxyId: z.string().uuid().nullable().optional(),
|
||||
name: z.string()
|
||||
name: z.string(),
|
||||
heartbeat: z.date().nullable().optional()
|
||||
});
|
||||
|
||||
export type TGatewaysV2 = z.infer<typeof GatewaysV2Schema>;
|
||||
|
||||
Reference in New Issue
Block a user