syntax = "proto3"; package bet.beteran.member; import "models/site.proto"; import "models/member_bank_account.proto"; import "models/member_class.proto"; import "models/member_level.proto"; enum MemberState { NONE = 0; NORMAL = 1; PENDING = 2; WITHDRAWAL = 3; DORMANCY = 4; BLACKLIST = 5; SUSPENDED = 6; } message Member { string id = 1; string site_id = 2; string member_class_id = 3; string member_level_id = 4; optional string referrer_member_id = 5; uint64 referred_count = 6; string username = 7; string nickname = 8; optional string mobile_phone_number = 9; MemberState state = 10; optional uint64 state_changed_at = 11; optional string last_signined_ip = 12; optional uint64 last_signined_at = 13; uint64 created_at = 14; uint64 updated_at = 15; optional uint64 deleted_at = 16; } message MemberModel { string id = 1; bet.beteran.site.Site site = 2; bet.beteran.member_class.MemberClass member_class = 3; bet.beteran.member_level.MemberLevel member_level = 4; optional bet.beteran.member_bank_account.MemberBankAccountModel bank_account = 5; optional Member referrer_member = 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; }