27 lines
1017 B
Go
27 lines
1017 B
Go
// Package orm define database data struct
|
|
package orm
|
|
|
|
// ProjectManager define struct to manager component attribute tables
|
|
type ProjectManager struct {
|
|
ID int32 `gorm:"primaryKey;column:id"`
|
|
Name string `gorm:"column:name;type:varchar(64);not null"`
|
|
Tag string `gorm:"column:tag;type:varchar(64);not null"`
|
|
MetaModel string `gorm:"column:meta_model;type:varchar(64);not null"`
|
|
GroupName string `gorm:"column:group_name;type:varchar(64);not null"`
|
|
LinkType int32 `gorm:"column:link_type;type:integer;not null;default:0"`
|
|
CheckState JSONMap `gorm:"column:check_state;type:jsonb;not null;default:'{}'"`
|
|
IsPublic bool `gorm:"column:ispublic;type:boolean;not null;default:false"`
|
|
}
|
|
|
|
// TableName func respresent return table name of Page
|
|
func (p *ProjectManager) TableName() string {
|
|
return "project_manager"
|
|
}
|
|
|
|
// ProjectIdentifier define struct to encapsulate query parameter pairs
|
|
type ProjectIdentifier struct {
|
|
Token string
|
|
Tag string
|
|
GroupName string
|
|
}
|