package dao

import "wails-app/internal/global"

type Printer struct {
	global.GVA_MODEL
	Name     string `gorm:"size:50" json:"name"`
	PortName string `gorm:"size:20" json:"port_name"` // COM3
	BaudRate int    `json:"baud_rate"`                // 9600
	Status   string `gorm:"size:20;default:offline" json:"status"`
	Location string `gorm:"size:20" json:"location"` // entry / exit
}

func (Printer) TableName() string { return "printer" }
