add org structure
This commit is contained in:
10
model/organization.go
Normal file
10
model/organization.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Organization struct {
|
||||
gorm.Model
|
||||
Name string `gorm:"unique;index"`
|
||||
ParentID uint `json:"parent_id"`
|
||||
Positions []Position `json:"positions,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user