mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
feat(api): add namespaces, batch ops, and admin logs
This commit is contained in:
11
internal/model/namespace.go
Normal file
11
internal/model/namespace.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user