1
0
forked from ALHP/ALHP.GO

prepare for better stats

This commit is contained in:
2021-07-26 16:38:12 +02:00
parent 6001f1b847
commit 9fc18e7867
9 changed files with 34 additions and 61 deletions

View File

@@ -62,6 +62,8 @@ func ValidColumn(column string) bool {
var (
// PkgbaseValidator is a validator for the "pkgbase" field. It is called by the builders before save.
PkgbaseValidator func(string) error
// DefaultStatus holds the default value on creation for the "status" field.
DefaultStatus int
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
StatusValidator func(int) error
// RepositoryValidator is a validator for the "repository" field. It is called by the builders before save.