一物一码
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

17 рядки
754 B

  1. package model
  2. import (
  3. "time"
  4. )
  5. type Product struct {
  6. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  7. Uid int `json:"uid" xorm:"not null default 0 INT(11)"`
  8. Name string `json:"name" xorm:"not null default '' comment('产品库名称') VARCHAR(64)"`
  9. Pvd string `json:"pvd" xorm:"not null default '' comment('平台') VARCHAR(12)"`
  10. Source string `json:"source" xorm:"not null default '' comment('来源;official:官方') VARCHAR(32)"`
  11. Data string `json:"data" xorm:"not null comment('设置数据源,json') TEXT"`
  12. CreateAt time.Time `json:"create_at" xorm:"default 'CURRENT_TIMESTAMP' TIMESTAMP"`
  13. UpdateAt time.Time `json:"update_at" xorm:"default 'CURRENT_TIMESTAMP' TIMESTAMP"`
  14. }