1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- syntax = "proto3";
- // required和optional都不再支持,默认optional;
- // 用户表;
- message tb_customer{
- string customer_id = 1; // id;
- string customer_name = 2; // 昵称;
- bool customer_gender = 3; // 性别;
- string customer_phone = 4; // 手机;
- string customer_password = 5; // 登录密码;
- string customer_old_phone = 6; // 旧手机;
- string customer_vcode = 7; // 验证码;
- string customer_vcode_expiry_time = 8; // 验证码有效期;
- bool customer_enable = 9; // 是否启用;
- string customer_gen_time = 10; // 生成日期;
- }
- // 回复类型表;
- message tb_type{
- string customer_id = 1; // 用户id;
- string type_id = 2; // 类型id;
- string type_name = 3; // 类型名称;
- string type_gen_time = 4; // 生成日期;
- }
- // 回复详情表;
- message tb_reply{
- string customer_id = 1; // 用户id;
- string type_id = 2; // 类型id;
- string reply_id = 3; // 回复id;
- string reply_name = 4; // 回复名称;
- string reply_content = 5; // 回复内容;
- string reply_gen_time = 6; // 生成日期;
- }
- // 用户表记录
- message rec_customer{
- repeated tb_customer customers = 1;
- }
- // 类型表记录;
- message rec_type{
- repeated tb_type types = 1;
- }
- // 回复详情记录;
- message rec_reply {
- repeated tb_reply replys = 1;
- }
- message view{
-
- }
|