syntax = "proto3";
option go_package = ".;pb";
import "battle_db.proto";

///熊猫柱子
message DBPracticePillar {
    int32 index = 1;       //柱子下标
    int32 lv = 2;          //柱子等级
    int32 isunlock = 3;    //是否解锁 0不能解锁 1可解锁 2已解锁
    string uid = 4;        //英雄uid
    string hero = 5;       //当前练功英雄
    string teacher = 6;    //教习
    string prop = 7;       //道具
    int64 start = 8;       //开始时间
    int64 end = 9;         //结束时间
    int64 expend = 10;      //经验上限时间
}

//熊猫武馆教习
message DBPracticeTeacher {
    string id = 1;        //id
    string cid = 2;       //配置id
    string student =3;    //学员id 有表示正在教学，没有表示没有教学
}

//雕像
message DBPracticeStatuer {
    string uid = 1;
    int32 figure = 2;
    string name = 3;
    string unionname = 4;
    int64 end = 5;
}

//练功房
message DBPracticeRoom {
    string id = 1;                  //@go_tags(`bson:"_id"`) id
    string uid = 2;                 //用户id
    int32 gymaction = 3;            //健身房动作
    int32 gymrefresh = 4;           //健身房刷新次数
    int64 lastrefresh = 5;          //最后刷新时间
    map<int32,int32> full = 6;      //满级登记
    map<string,int32> knapsack = 7; //资源
    DBPracticePillar pillar1 = 8;   //柱子1
    DBPracticePillar pillar2 = 9;   //柱子2
    DBPracticePillar pillar3 = 10;  //柱子3
    DBPracticePillar pillarf = 11;  //好友柱子
    repeated DBPracticeStatuer statuers= 12;  //武馆雕像
    int32 currnpc = 13;                       //当前npc
    int32 npcstate = 14;                      //npc状态 0 未挑战 1 挑战失败 2挑战成功 3 CD中
    int64 refresh = 15;                       //刷新时间
    int32 battlenum = 16;                     //战斗次数
    int32 captain = 17;                       //战斗征信队长位
    repeated BattleRole formation = 18;       //战斗阵型
}

message DBPracticeQiecuoInvite {
    string uid = 1; 
    int64 timestamp = 2;
}


//切磋请求记录
message DBPracticeQiecuoRecord{
    string id = 1;  //@go_tags(`bson:"_id"`) id
    string uid = 2; //发起人id
    repeated DBPracticeQiecuoInvite targets = 3; 
    int32 status = 4;       //0邀请中 1战斗中
    string battid = 5; 
    repeated string member = 6;  //接受方id
} 