12345678910111213141516171819202122232425262728 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameDevice = "device"
- // Device mapped from table <device>
- type Device struct {
- DeviceNo string `gorm:"column:device_no;type:varchar(100);primaryKey" json:"device_no"`
- DeviceName string `gorm:"column:device_name;type:varchar(100);not null" json:"device_name"`
- DeviceType string `gorm:"column:device_type;type:varchar(100);not null" json:"device_type"`
- CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
- UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
- }
- // TableName Device's table name
- func (*Device) TableName() string {
- return TableNameDevice
- }
|