feat(monitoring/site-mappings): globalize site_domain_mappings

Drop tenant scoping on site_domain_mappings now that the citation query
resolves mappings without tenant filtering. Add a unique index on
registrable_domain plus an updated_at column, and switch the dev-seed
upsert to use ON CONFLICT (registrable_domain). Adds a SiteDomainMapping
type to ops/domain for the upcoming console management UI.
This commit is contained in:
2026-04-29 16:00:13 +08:00
parent 01b289ba0b
commit 674709c86b
5 changed files with 66 additions and 9 deletions
+10
View File
@@ -63,3 +63,13 @@ type AuditLogFilter struct {
Limit int
Offset int
}
type SiteDomainMapping struct {
ID int64
RegistrableDomain string
SiteKey string
SiteName string
IsActive bool
CreatedAt time.Time
UpdatedAt time.Time
}