feat(topology): добавить схему инфраструктуры на React Flow
Docker / build (push) Failing after 19s

Редактор схем с VPS-нодами, связями и персистом в SQLite по space.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
DenozordecandCursor committed 2026-07-18 16:52:36 +07:00
1 parent c90b42c9c4
commit da818fe104
30 files changed
+2129 -1

No files matched your search

+13
View File
@@ -347,4 +347,17 @@ export const tariffSyncOptions = sqliteTable('tariff_sync_options', {
syncedAt: text('syncedAt'),
})
export const topologyDiagrams = sqliteTable('topology_diagrams', {
id: text('id').primaryKey(),
spaceId: text('spaceId')
.notNull()
.default('space-main')
.references(() => spaces.id),
name: text('name').notNull(),
document: text('document').notNull().default('{"nodes":[],"edges":[],"viewport":{"x":0,"y":0,"zoom":1}}'),
locked: integer('locked').notNull().default(0),
createdAt: text('createdAt').notNull(),
updatedAt: text('updatedAt').notNull(),
})
export const now = sql`(datetime('now'))`