16 lines
667 B
Go
16 lines
667 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Org struct {
|
|
ID string `json:"id" gorm:"type:varchar(32);primaryKey"`
|
|
ParentID string `json:"parentId" gorm:"type:varchar(32);index"`
|
|
Name string `json:"name" gorm:"type:varchar(128);not null;index"`
|
|
Enabled bool `json:"enabled" gorm:"not null;default:true;index"`
|
|
Sort int `json:"sort" gorm:"not null;default:0"`
|
|
Remark string `json:"remark" gorm:"type:varchar(255);default:''"`
|
|
Deleted bool `json:"deleted" gorm:"not null;default:false;index"`
|
|
CreatedAt time.Time `json:"createdAt" gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `json:"updatedAt" gorm:"autoUpdateTime"`
|
|
}
|