package model

// AppBrand 品牌数据表模型
type AppBrand struct {
	ID           int64  `gorm:"primaryKey;column:id"`
	Name         string `gorm:"column:name"`
	SpiderOrigin string `gorm:"column:spider_origin"`
}

func (AppBrand) TableName() string {
	return "app_brands" // 根据实际表名调整
}

// BrandRunway 时尚发布会主表
type BrandRunway struct {
	ID             uint   `gorm:"primaryKey;column:id;autoIncrement" json:"id"`
	Title          string `gorm:"column:title" json:"title"`
	Description    string `gorm:"column:description" json:"description"`
	CreatedAt      int64  `gorm:"column:created_at" json:"created_at"`
	UpdatedAt      int64  `gorm:"column:updated_at" json:"updated_at"`
	IsDeleted      uint8  `gorm:"column:is_deleted" json:"is_deleted"`
	ImageCount     uint16 `gorm:"column:image_count" json:"image_count"`
	BrandID        uint   `gorm:"column:brand_id" json:"brand_id"`
	Year           uint16 `gorm:"column:year" json:"year"`
	Cover          string `gorm:"column:cover" json:"cover"`
	SourceURL      string `gorm:"column:source_url" json:"source_url"`
	CollectionType string `gorm:"column:collection_type" json:"collection_type"`
	Season         string `gorm:"column:season" json:"season"`
	SeasonCode     string `gorm:"column:season_code" json:"season_code"`
}

// TableName 指定主表名
func (BrandRunway) TableName() string {
	return "brand_runway"
}

// BrandRunwayImage 发布会图片表
type BrandRunwayImage struct {
	ID        uint   `gorm:"primaryKey;column:id;autoIncrement" json:"id"`
	CreatedAt int64  `gorm:"column:created_at" json:"created_at"`
	UpdatedAt int64  `gorm:"column:updated_at" json:"updated_at"`
	IsDeleted uint8  `gorm:"column:is_deleted" json:"is_deleted"`
	Image     string `gorm:"column:image" json:"image"`
	RunwayID  uint   `gorm:"column:runway_id" json:"runway_id"`
	BrandID   uint   `gorm:"column:brand_id" json:"brand_id"`
	Name      string `gorm:"column:name" json:"name"`
	SortOrder uint   `gorm:"column:sort_order" json:"sort_order"`
}

// TableName 指定图片明细表名
func (BrandRunwayImage) TableName() string {
	return "brand_runway_images"
}