Update models/repo/license.go

Co-authored-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
yp05327 2024-03-05 14:04:10 +09:00 committed by GitHub
parent c218be05ff
commit 00b182c17f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,7 @@ type RepoLicense struct { //revive:disable-line:exported
ID int64 `xorm:"pk autoincr"`
RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
CommitID string
// TODO: `INDEX` will be used to find repositories by license
License string `xorm:"VARCHAR(50) UNIQUE(s) INDEX NOT NULL"`
CreatedUnix timeutil.TimeStamp `xorm:"INDEX CREATED"`
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX UPDATED"`