一物一码
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

17 lignes
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. }