fix: add restraints for models

This commit is contained in:
Jason Song
2023-01-04 16:43:40 +08:00
parent 7f6a803d24
commit 2c686e8826
4 changed files with 12 additions and 12 deletions

View File

@ -23,7 +23,7 @@ import (
type ActionRunner struct {
ID int64
UUID string `xorm:"CHAR(36) UNIQUE"`
Name string `xorm:"VARCHAR(32)"`
Name string `xorm:"VARCHAR(255)"`
OwnerID int64 `xorm:"index"` // org level runner, 0 means system
Owner *user_model.User `xorm:"-"`
RepoID int64 `xorm:"index"` // repo level runner, if orgid also is zero, then it's a global