Редактор схем с VPS-нодами, связями и персистом в SQLite по space. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c90b42c9c4
commit
da818fe104
30 files changed
+2129
-1
No files matched your search
@@ -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'))`
|
||||
Reference in new issue
Block a user