feat: implement new structure

This commit is contained in:
2025-12-29 09:30:49 +08:00
parent 503b15aab7
commit ad52371028
116 changed files with 17579 additions and 1213 deletions

12
models/tenants.go Normal file
View File

@@ -0,0 +1,12 @@
package models
import (
"go.ipao.vip/gen/types"
"gorm.io/gorm"
)
// BeforeCreate
func (m *Tenant) BeforeCreate(tx *gorm.DB) error {
m.UUID = types.NewUUIDv4()
return nil
}