20 lines
692 B
Go
20 lines
692 B
Go
package entity
|
|
|
|
import (
|
|
"time"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type CountAssets struct {
|
|
ID uuid.UUID `json:"id" gorm:"type:uuid;primaryKey"`
|
|
FishboneAmount int `json:"fishbone_amount" gorm:"column:fishbone_amount"`
|
|
BackboneAmount int `json:"backbone_amount" gorm:"column:backbone_amount"`
|
|
DeviceAmount int `json:"device_amount" gorm:"column:device_amount"`
|
|
TowerAmount int `json:"tower_amount" gorm:"column:tower_amount"`
|
|
CreatedAt time.Time `json:"created_at" gorm:"column:created_at"`
|
|
UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at"`
|
|
}
|
|
|
|
func (CountAssets) TableName() string {
|
|
return "count_assets"
|
|
} |