feat(api): add namespaces, batch ops, and admin logs

This commit is contained in:
zenfun
2025-12-21 23:16:27 +08:00
parent 73147fc55a
commit c2ed2f3f9e
12 changed files with 824 additions and 42 deletions

View File

@@ -0,0 +1,11 @@
package model
import "gorm.io/gorm"
// Namespace represents a logical namespace for public models/bindings.
type Namespace struct {
gorm.Model
Name string `gorm:"size:100;uniqueIndex;not null" json:"name"`
Status string `gorm:"size:50;default:'active'" json:"status"`
Description string `gorm:"size:255" json:"description"`
}