beteran-protobuf/proto/models/member_bank_deposit.proto

38 lines
723 B
Protocol Buffer
Raw Normal View History

2022-08-13 20:18:21 +00:00
syntax = "proto3";
package bet.beteran.member_bank_deposit;
2022-08-28 13:37:36 +00:00
import "models/member.proto";
2022-08-13 20:18:21 +00:00
enum MemberBankDepositState {
NONE = 0;
APPLICATION = 1;
2022-08-28 13:37:36 +00:00
PENDING = 2;
COMPLETE = 3;
2022-08-13 20:18:21 +00:00
}
message MemberBankDeposit {
string id = 1;
string member_id = 2;
string name = 3;
2022-08-30 08:32:03 +00:00
double amount = 4;
2022-08-13 20:18:21 +00:00
optional string memo = 5;
MemberBankDepositState state = 6;
uint64 state_changed_at = 7;
uint64 created_at = 8;
uint64 updated_at = 9;
}
2022-08-28 13:37:36 +00:00
message MemberBankDepositModel {
string id = 1;
bet.beteran.member.Member member = 2;
string name = 3;
2022-08-30 08:32:03 +00:00
double amount = 4;
2022-08-28 13:37:36 +00:00
optional string memo = 5;
MemberBankDepositState state = 6;
uint64 state_changed_at = 7;
uint64 created_at = 8;
uint64 updated_at = 9;
}