mirror of
https://github.com/tale/headplane.git
synced 2026-07-28 08:38:57 +00:00
b18147fa82
we also have added the necessary logic to auto prune ephemeral nodes because headscale doesn't seem to automatically remove them. this change made use of a database which is now stored in the persistent headplane directory.
10 lines
335 B
TypeScript
10 lines
335 B
TypeScript
import { sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
|
|
|
export const ephemeralNodes = sqliteTable('ephemeral_nodes', {
|
|
auth_key: text('auth_key').primaryKey(),
|
|
node_key: text('node_key'),
|
|
});
|
|
|
|
export type EphemeralNode = typeof ephemeralNodes.$inferSelect;
|
|
export type EphemeralNodeInsert = typeof ephemeralNodes.$inferInsert;
|