24 lines
647 B
Go
Raw Normal View History

2025-03-08 00:35:23 +07:00
package models
import (
"time"
)
type ProductDB struct {
ID int64 `gorm:"primaryKey;column:id"`
SiteID int64 `gorm:"column:site_id"`
PartnerID int64 `gorm:"column:partner_id"`
Name string `gorm:"column:name"`
Description string `gorm:"column:description"`
Price float64 `gorm:"column:price"`
Type string `gorm:"column:type"`
Status string `gorm:"column:status"`
CreatedAt time.Time `gorm:"column:created_at"`
UpdatedAt time.Time `gorm:"column:updated_at"`
2025-04-05 11:28:06 +08:00
Image string `gorm:"column:image"`
2025-03-08 00:35:23 +07:00
}
func (ProductDB) TableName() string {
return "products"
}