pet-ai/server/model/pet/pet_family_pets.go

22 lines
927 B
Go

// 自动生成模板PetFamilyPets
package pet
import (
"github.com/flipped-aurora/gin-vue-admin/server/global"
"time"
)
// petFamilyPets表 结构体 PetFamilyPets
type PetFamilyPets struct {
global.GVA_MODEL
FamilyId *int `json:"familyId" form:"familyId" gorm:"comment:家庭ID;column:family_id;size:20;" binding:"required"` //家庭ID
PetId *int `json:"petId" form:"petId" gorm:"comment:宠物ID;column:pet_id;size:20;" binding:"required"` //宠物ID
AddedBy *int `json:"addedBy" form:"addedBy" gorm:"comment:添加者用户ID;column:added_by;size:20;" binding:"required"` //添加者用户ID
AddedAt *time.Time `json:"addedAt" form:"addedAt" gorm:"comment:添加时间;column:added_at;" binding:"required"` //添加时间
}
// TableName petFamilyPets表 PetFamilyPets自定义表名 pet_family_pets
func (PetFamilyPets) TableName() string {
return "pet_family_pets"
}