// 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 TableNameSysError = "sys_error"

// SysError mapped from table <sys_error>
type SysError struct {
	ID        int64          `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_error_deleted_at,priority:1" json:"deleted_at"`
	Form      string         `gorm:"column:form;type:text;comment:错误来源" json:"form"`                        // 错误来源
	Info      string         `gorm:"column:info;type:text;comment:错误内容" json:"info"`                        // 错误内容
	Level     string         `gorm:"column:level;type:varchar(191);comment:日志等级" json:"level"`              // 日志等级
	Solution  string         `gorm:"column:solution;type:text;comment:解决方案" json:"solution"`                // 解决方案
	Status    string         `gorm:"column:status;type:varchar(20);default:未处理;comment:处理状态" json:"status"` // 处理状态
}

// TableName SysError's table name
func (*SysError) TableName() string {
	return TableNameSysError
}
