You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.1 KiB
Go
21 lines
1.1 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Product struct {
|
|
Id int `json:"id" gorm:"column:id;type:int(11);primary_key;not null;autoIncrement;comment:主键"`
|
|
ProjectId int `json:"product_id" gorm:"column:product_id"`
|
|
ProductLine string `json:"product_line" gorm:"column:product_line"`
|
|
Name string `json:"name" gorm:"column:name"`
|
|
PackageName string `json:"package_name" gorm:"column:package_name;type:varchar(255);not null;comment:应用包名"`
|
|
LaunchActivity string `json:"launch_activity" gorm:"column:launch_activity;type:varchar(255);comment:启动Activity页"`
|
|
Platform string `json:"platform" gorm:"column:platform"`
|
|
CreateTime time.Time `json:"create_time" gorm:"column:create_time;not null;autoCreateTime;comment:创建时间"`
|
|
UpdateTime time.Time `json:"update_time" gorm:"column:update_time;not null;autoUpdateTime;comment:更新时间"`
|
|
IsDel int `json:"is_del" gorm:"column:is_del;type:int(1);not null;comment:是否已删除"`
|
|
}
|
|
|
|
func (t *Product) TableName() string {
|
|
return "products"
|
|
}
|