2025-12-16 16:34:19 +08:00
|
|
|
// 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"
|
|
|
|
|
}
|
2026-01-08 17:34:44 +08:00
|
|
|
|
|
|
|
|
// ProjectIdentifier define struct to encapsulate query parameter pairs
|
|
|
|
|
type ProjectIdentifier struct {
|
2026-01-09 17:26:45 +08:00
|
|
|
Token string
|
2026-01-08 17:34:44 +08:00
|
|
|
Tag string
|
2026-01-14 17:32:01 +08:00
|
|
|
GroupName string
|
2026-01-08 17:34:44 +08:00
|
|
|
}
|