38 lines
723 B
Protocol Buffer
38 lines
723 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bet.beteran.member_bank_deposit;
|
|
|
|
import "models/member.proto";
|
|
|
|
enum MemberBankDepositState {
|
|
NONE = 0;
|
|
APPLICATION = 1;
|
|
PENDING = 2;
|
|
COMPLETE = 3;
|
|
}
|
|
|
|
message MemberBankDeposit {
|
|
string id = 1;
|
|
string member_id = 2;
|
|
string name = 3;
|
|
double amount = 4;
|
|
optional string memo = 5;
|
|
MemberBankDepositState state = 6;
|
|
uint64 state_changed_at = 7;
|
|
uint64 created_at = 8;
|
|
uint64 updated_at = 9;
|
|
}
|
|
|
|
|
|
message MemberBankDepositModel {
|
|
string id = 1;
|
|
bet.beteran.member.Member member = 2;
|
|
string name = 3;
|
|
double amount = 4;
|
|
optional string memo = 5;
|
|
MemberBankDepositState state = 6;
|
|
uint64 state_changed_at = 7;
|
|
uint64 created_at = 8;
|
|
uint64 updated_at = 9;
|
|
}
|