portal/db/models/sc_price_history.go

25 lines
379 B
Go
Raw Normal View History

2024-03-10 16:41:42 +00:00
package models
import (
"time"
"gorm.io/gorm"
"gorm.io/gorm/schema"
2024-03-10 16:41:42 +00:00
)
var _ schema.Tabler = (*SCPriceHistory)(nil)
2024-03-10 16:41:42 +00:00
func init() {
registerModel(&SCPriceHistory{})
}
type SCPriceHistory struct {
gorm.Model
CreatedAt time.Time `gorm:"index:idx_rate"`
Rate float64 `gorm:"index:idx_rate"`
}
func (SCPriceHistory) TableName() string {
return "sc_price_history"
}