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

enum PillarState {
  NoUse = 0;   //未使用
  Useing = 1;  //使用中
  Receive = 2; //待领取
}

///练功柱子
message DBPillar {
  int32 index = 1;       //柱子下标
  bool isunlock = 2;     //是否解锁
  PillarState state = 3; //状态
  string hero = 4;       //当前练功英雄
  int64 start = 5;       //开始时间
  int64 end = 6;         //结束时间
  int64 lastbill = 7;    //上次结账时间
  int32 reward = 8;      //奖励
}

//练功房
message DBMartialhall {
  string id = 1;        //组件id
  string uid = 2;       //用户id
  int32 lv = 3;         //武馆等级
  DBPillar pillar1 = 4; //柱子1
  DBPillar pillar2 = 5; //柱子2
  DBPillar pillar3 = 6; //柱子3
  DBPillar pillar4 = 7; //柱子4
  DBPillar pillar5 = 8; //柱子5
}