feat(center-nodes): add node status model and status update endpoint
Some checks failed
backend-ci / verify (Fabric.Backend.Center) (push) Has been cancelled
backend-ci / verify (Fabric.Backend.Guild) (push) Has been cancelled

This commit is contained in:
nav
2026-05-12 08:52:39 +00:00
parent e10d225063
commit 7887a8d3be
4 changed files with 38 additions and 3 deletions

View File

@@ -14,8 +14,12 @@ export class GuildNode {
@Column()
endpoint!: string;
@Column({ default: 'active' })
status!: string;
@Column({
type: 'enum',
enum: ['active', 'offline', 'revoked'],
default: 'active',
})
status!: 'active' | 'offline' | 'revoked';
@CreateDateColumn()
createdAt!: Date;