|
|
@@ -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
|
|
|
+}
|