syntax = "proto3";
option go_package = ".;pb";

//支付订单数据表
message DBPayOrder {
  string orderid = 1;
  string uid = 2;
  string productid = 3;
  int64 ctime = 4;
}

//
message DBUserPay {
  string uid = 1;              //用户id
  map<string, int32> record = 2; //商品购买次数
}

//每日商城商品数据
message PayDailyItem {
  int32 id = 1;
  int32 buyunm = 2;
  int64 lastrefresh = 3;
}

//用户每日礼包
message DBPayDaily {
  string uid = 1;                     //用户id
  map<int32, PayDailyItem> items = 2; //商品购买次数
}