This commit is contained in:
2024-09-03 13:26:30 +08:00
parent 3b6830556b
commit c85fdd129f
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ import (
// BaseAgreement 基础-协议
type BaseAgreement struct {
AgreementId int64 `gorm:"column:agreement_id;type:bigint(19);primary_key;comment:主键id" json:"agreement_id"`
AgreementTitle string `gorm:"column:agreement_title;type:varchar(255);comment:协议标题" json:"agreement_title"`
AgreementType int `gorm:"column:agreement_type;type:tinyint(1);comment:协议类型(1:大赛介绍 2:投票规则);NOT NULL" json:"agreement_type"`
AgreementContent string `gorm:"column:agreement_content;type:text;comment:协议内容" json:"agreement_content"`
Model