1
0
forked from baron/baron-sso

fix(backend): fix UserGroup model and NewTenantService signature in bootstrap and tests

This commit is contained in:
2026-03-04 14:31:05 +09:00
parent 9ac99d2e0c
commit 0a784e5534
4 changed files with 14 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ type UserGroup struct {
TenantID string `gorm:"type:uuid;index;not null" json:"tenantId"`
ParentID *string `gorm:"type:uuid;index" json:"parentId,omitempty"` // 상위 조직 ID
Name string `gorm:"not null" json:"name"`
Slug string `gorm:"index" json:"slug"` // 추가
Description string `json:"description"`
UnitType string `json:"unitType"` // 부, 국, 팀, 셀 등
CreatedAt time.Time `json:"createdAt"`