mirror of
https://shylinux.com/x/enterprise
synced 2025-04-25 09:08:06 +08:00
36 lines
820 B
Go
36 lines
820 B
Go
package model
|
|
|
|
import "shylinux.com/x/mysql-story/src/db"
|
|
|
|
const (
|
|
UID = "uid"
|
|
NAME = "name"
|
|
TYPE = "type"
|
|
ROLE = "role"
|
|
TITLE = "title"
|
|
CONTENT = "content"
|
|
USER_UID = "user_uid"
|
|
USER_REPOS_ROLE = "user_repos_role"
|
|
REPOS_UID = "repos_uid"
|
|
REPOS_NAME = "repos_name"
|
|
REPOS_TYPE = "repos_type"
|
|
RELEASE_UID = "release_uid"
|
|
COMPANY_UID = "company_uid"
|
|
CITY_UID = "city_uid"
|
|
)
|
|
|
|
type UserRepos struct {
|
|
db.ModelUserPlace
|
|
ReposUID string `gorm:"type:char(32);index"`
|
|
}
|
|
type Repos struct {
|
|
db.ModelPlace
|
|
CompanyUID string `gorm:"type:char(32);index"`
|
|
}
|
|
type Release struct {
|
|
db.ModelContent
|
|
ReposUID string `gorm:"type:char(32);index"`
|
|
}
|
|
|
|
func init() { db.CmdModels("", &UserRepos{}, &Repos{}, &Release{}) }
|