// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameAdvertisementSpace = "advertisement_space"

// AdvertisementSpace mapped from table <advertisement_space>
type AdvertisementSpace struct {
	ID         int64     `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	PositionID int32     `gorm:"column:position_id;type:int(11);not null" json:"position_id"` // 广告位id
	Name       string    `gorm:"column:name;type:varchar(255);not null" json:"name"`          // 广告位名称
	CreatedAt  time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
	UpdatedAt  time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
}

// TableName AdvertisementSpace's table name
func (*AdvertisementSpace) TableName() string {
	return TableNameAdvertisementSpace
}
