一物一码
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

product.go 754 B

2 år sedan
12345678910111213141516
  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. }