feat: convert network-topology to a full plugin (B1)

This commit is contained in:
LukeGus committed 2026-09-23 07:36:39 -05:00
1 parent 95abe24798
commit fdedca39fd
51 files changed
+30321 -814

No files matched your search

@@ -0,0 +1,12 @@
-- network-topology 0001: adopt_network_topology
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS `network_topology` (
`id` int AUTO_INCREMENT PRIMARY KEY,
`user_id` varchar(255) NOT NULL,
`topology` text,
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
`updated_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
);
RENAME TABLE `network_topology` TO `p_network_topology_graphs`;
@@ -0,0 +1,12 @@
-- network-topology 0001: adopt_network_topology
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS "network_topology" (
"id" serial PRIMARY KEY,
"user_id" varchar(255) NOT NULL,
"topology" text,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);
ALTER TABLE "network_topology" RENAME TO "p_network_topology_graphs";
@@ -0,0 +1,34 @@
{
"version": 1,
"tables": {
"graphs": {
"columns": {
"id": {
"type": "id",
"primaryKey": true,
"notNull": true
},
"userId": {
"type": "refUser",
"length": 255,
"notNull": true
},
"topology": {
"type": "text"
},
"createdAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
},
"updatedAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
}
},
"indexes": [],
"adopts": "network_topology"
}
}
}
@@ -0,0 +1,12 @@
-- network-topology 0001: adopt_network_topology
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS "network_topology" (
"id" integer PRIMARY KEY AUTOINCREMENT,
"user_id" text NOT NULL,
"topology" text,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);
ALTER TABLE "network_topology" RENAME TO "p_network_topology_graphs";