abiao преди 4 години
родител
ревизия
fa39c7b8a3

+ 25 - 0
go/gopath/src/fohow.com/apps/models/order_model/order_dt_item.go

@@ -0,0 +1,25 @@
+package order_model
+
+import (
+	"time"
+)
+
+const (
+	order_dt_items_tablename = "order_base_details"
+)
+
+type OrderDtItem struct {
+	Id        int64     `orm:"column(id);pk"                json:"id"`                  // int(11)
+	OrderId   int64     `orm:"column(order_id)"             json:"order_id"`            // int(11)
+	OrderNo   string    `orm:"column(order_no);null"        json:"order_no"`            // varchar(64)
+	OrderDtId int64     `orm:"column(order_dt_id)"          json:"order_dt_id"`         // int(11)
+	ProductId int64     `orm:"column(product_id)"           json:"product_id"`          // int(11)
+	Title     string    `orm:"column(title);null"           json:"title"`               // varchar(64)
+	Nums      int64     `orm:"column(nums);null"            json:"nums"`                // tinyint(1)
+	CreatedAt time.Time `orm:"column(created_at);auto_now_add;type(datetime)" json:"-"` // datetime
+	UpdatedAt time.Time `orm:"column(updated_at);auto_now;type(datetime)"     json:"-"` // datetime
+}
+
+func (self *OrderDtItem) TableName() string {
+	return order_dt_items_tablename
+}

+ 22 - 0
go/gopath/src/fohow.com/apps/models/product_model/product_item.go

@@ -0,0 +1,22 @@
+package product_model
+
+import "time"
+
+const (
+	product_items_tablename = "product_items"
+)
+
+type ProductItem struct {
+	Id        int64     `orm:"column(id);pk"                json:"id"`                  // int(11)
+	ProductId int64     `orm:"column(product_id)"           json:"product_id"`          // int(11)
+	Title     string    `orm:"column(title);null"           json:"title"`               // varchar(64)
+	ItemId    int64     `orm:"column(item_id);null"         json:"item_id"`             // tinyint(1)
+	ItemTitle string    `orm:"column(item_title);null"      json:"item_title"`          // varchar(64)
+	Nums      int64     `orm:"column(nums);null"            json:"nums"`                // tinyint(1)
+	CreatedAt time.Time `orm:"column(created_at);auto_now_add;type(datetime)" json:"-"` // datetime
+	UpdatedAt time.Time `orm:"column(updated_at);auto_now;type(datetime)"     json:"-"` // datetime
+}
+
+func (self *ProductItem) TableName() string {
+	return product_items_tablename
+}