beteran-protobuf/proto/models/member/member.proto
2022-07-12 07:02:38 +00:00

39 lines
851 B
Protocol Buffer

syntax = "proto3";
package bet.beteran.member;
import "models/member/member_class.proto";
import "models/member/member_level.proto";
import "models/member/member_site.proto";
enum MemberState {
NONE = 0;
NORMAL = 1;
PENDING = 2;
WITHDRAWAL = 3;
DORMANCY = 4;
BLACKLIST = 5;
SUSPENDED = 6;
}
message Member {
string id = 1;
string domain_id = 2;
MemberClass member_class = 3;
MemberLevel member_level = 4;
MemberSite member_site = 5;
optional Member referrer = 6;
uint64 referred_count = 7;
string username = 8;
string nickname = 9;
optional string mobile_phone_number = 10;
MemberState state = 11;
optional uint64 state_changed_at = 12;
optional string last_signined_ip = 13;
optional uint64 last_signined_at = 14;
uint64 created_at = 15;
uint64 updated_at = 16;
optional uint64 deleted_at = 17;
}