12345678910111213141516171819202122232425262728293031323334 |
- // 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 models
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameApp = "ot_apps"
- // App mapped from table <ot_apps>
- type App struct {
- ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- CreatedAt time.Time `gorm:"column:created_at" json:"createdat"`
- UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedat"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deletedat"`
- CreateBy int64 `gorm:"column:create_by;comment:创建者" json:"createby"` // 创建者
- UpdateBy int64 `gorm:"column:update_by;comment:更新者" json:"updateby"` // 更新者
- Name string `gorm:"column:name;not null" json:"name"`
- Alias string `gorm:"column:alias;not null" json:"alias"`
- Desc string `gorm:"column:desc" json:"desc"`
- ImgURL string `gorm:"column:img_url" json:"imgurl"`
- ContractInfo string `gorm:"column:contract_info" json:"contractinfo"`
- ContractPhone string `gorm:"column:contract_phone" json:"contractphone"`
- }
- // TableName App's table name
- func (*App) TableName() string {
- return TableNameApp
- }
|