package model

import (
	"gorm.io/plugin/soft_delete"
	"time"
)

type Model struct {
	ID        int64                 `gorm:"primarykey;"  json:"id" form:"id"`
	CreatedAt time.Time             `gorm:"column:created_at" json:"createdAt"`
	UpdatedAt time.Time             `gorm:"column:updated_at" json:"updatedAt"`
	DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:bigint" json:"deletedAt"`
}

type AuditModel struct {
	AuditStatus int64  `json:"auditStatus" gorm:"column:audit_status;default:1;comment:审核状态 1:待审核/暂存 2:审核通过 3:审核不通过"`
	AuditMark   string `json:"auditMark" gorm:"column:audit_mark;comment:审核备注"`
	AuditMark2  string `json:"auditMark2" gorm:"column:audit_mark2;comment:审核备注2"`
}