feat: Implement database migration framework with initial migrations for organizations, workspaces, agents, virtual hosts, upstreams, certificates, and users

This commit is contained in:
GW_MC
2026-03-03 04:31:06 +00:00
parent 2e9ad4fc21
commit 7d9285ba44
15 changed files with 785 additions and 23 deletions

View File

@@ -5,7 +5,7 @@ members = [
"crates/nxmesh-master",
"crates/nxmesh-agent",
"crates/nxmesh-cli",
"migrations/sea-orm",
"migration",
]
resolver = "3"
@@ -36,7 +36,10 @@ tonic = "0.11"
prost = "0.12"
# Database
sea-orm = { version = "2.0.0-rc", features = ["sqlx-postgres", "runtime-tokio-native-tls"] }
sea-orm = { version = "2.0.0-rc", features = [
"sqlx-postgres",
"runtime-tokio-native-tls",
] }
sea-orm-migration = "2.0.0-rc"
# Async
@@ -48,7 +51,10 @@ toml = "0.8"
config = "0.14"
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }
reqwest = { version = "0.12", default-features = false, features = [
"rustls-tls",
"json",
] }
# Crypto
sha2 = "0.10"