Files
devstar/models/devstar_devcontainer/devstar_devcontainer_user.go
2024-08-27 19:03:07 +08:00

19 lines
711 B
Go

package devstar_devcontainer
import (
"code.gitea.io/gitea/models/db"
)
// DevstarDevcontainerUser devContainer 与 用户 多对多关联表
//
// 遵循gonic规则映射数据库表 `devstar_devcontainer_user`,各字段注解见 https://xorm.io/docs/chapter-02/4.columns/
type DevstarDevcontainerUser struct {
Id int64 `xorm:"BIGINT pk NOT NULL autoincr 'id' comment('主键')"`
DevcontainerId int64 `xorm:"BIGINT NOT NULL 'devcontainer_id' comment('devstar_devcontainer表主键')"`
UserId int64 `xorm:"BIGINT NOT NULL 'user_id' comment('user表主键')"`
}
func init() {
db.RegisterModel(new(DevstarDevcontainerUser))
}