table.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. syntax = "proto3";
  2. // required和optional都不再支持,默认optional;
  3. // 用户表;
  4. message tb_customer{
  5. string customer_id = 1; // id;
  6. string customer_name = 2; // 昵称;
  7. bool customer_gender = 3; // 性别;
  8. string customer_phone = 4; // 手机;
  9. string customer_password = 5; // 登录密码;
  10. string customer_old_phone = 6; // 旧手机;
  11. string customer_vcode = 7; // 验证码;
  12. string customer_vcode_expiry_time = 8; // 验证码有效期;
  13. bool customer_enable = 9; // 是否启用;
  14. string customer_gen_time = 10; // 生成日期;
  15. }
  16. // 回复类型表;
  17. message tb_type{
  18. string customer_id = 1; // 用户id;
  19. string type_id = 2; // 类型id;
  20. string type_name = 3; // 类型名称;
  21. string type_gen_time = 4; // 生成日期;
  22. }
  23. // 回复详情表;
  24. message tb_reply{
  25. string customer_id = 1; // 用户id;
  26. string type_id = 2; // 类型id;
  27. string reply_id = 3; // 回复id;
  28. string reply_name = 4; // 回复名称;
  29. string reply_content = 5; // 回复内容;
  30. string reply_gen_time = 6; // 生成日期;
  31. }
  32. // 用户表记录
  33. message rec_customer{
  34. repeated tb_customer customers = 1;
  35. }
  36. // 类型表记录;
  37. message rec_type{
  38. repeated tb_type types = 1;
  39. }
  40. // 回复详情记录;
  41. message rec_reply {
  42. repeated tb_reply replys = 1;
  43. }
  44. message view{
  45. }