cml04-falcon-ui/types/barcode.go

26 lines
442 B
Go
Raw Normal View History

2024-10-06 04:55:38 +02:00
package types
import (
"time"
"gorm.io/gorm"
)
type BarcodeStatus uint16
type LoadingBed uint8
const (
ATA12 LoadingBed = iota + 1
ATA345
ALL
)
type Barcode struct {
Barcode string `gorm:"primaryKey"`
LoadingBed LoadingBed
CreatedAt time.Time `gorm:"->;<-:create" json:"createdat,omitempty"`
UpdatedAt time.Time `json:"updatedat,omitempty"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedat,omitempty"`
}