proxy_apply_logs.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. 'use strict';
  2. module.exports = app => {
  3. const DataTypes = app.Sequelize;
  4. const Model = app.model.define('ProxyApplyLogs', {
  5. proxy_apply_id: {
  6. type: DataTypes.INTEGER(10).UNSIGNED,
  7. allowNull: false,
  8. primaryKey: true,
  9. autoIncrement: true,
  10. },
  11. user_id: {
  12. type: DataTypes.INTEGER(10).UNSIGNED,
  13. allowNull: true,
  14. },
  15. real_name: {
  16. type: DataTypes.STRING(255),
  17. allowNull: true,
  18. },
  19. phone_num: {
  20. type: DataTypes.STRING(11),
  21. allowNull: true,
  22. },
  23. id_num: {
  24. type: DataTypes.STRING(18),
  25. allowNull: true,
  26. },
  27. province_id: {
  28. type: DataTypes.INTEGER(10).UNSIGNED,
  29. allowNull: true,
  30. },
  31. province_name: {
  32. type: DataTypes.STRING(255),
  33. allowNull: true,
  34. },
  35. city_id: {
  36. type: DataTypes.INTEGER(10).UNSIGNED,
  37. allowNull: true,
  38. },
  39. city_name: {
  40. type: DataTypes.STRING(255),
  41. allowNull: true,
  42. },
  43. county_id: {
  44. type: DataTypes.INTEGER(10).UNSIGNED,
  45. allowNull: true,
  46. },
  47. county_name: {
  48. type: DataTypes.STRING(255),
  49. allowNull: true,
  50. },
  51. address: {
  52. type: DataTypes.STRING(255),
  53. allowNull: true,
  54. },
  55. admin_id: {
  56. type: DataTypes.INTEGER(10).UNSIGNED,
  57. defaultValue: -1,
  58. allowNull: true,
  59. },
  60. verify_status: {
  61. type: DataTypes.INTEGER(1),
  62. defaultValue: -1,
  63. allowNull: true,
  64. },
  65. update_time: {
  66. type: DataTypes.TIME,
  67. },
  68. create_time: {
  69. type: DataTypes.DATE,
  70. allowNull: true,
  71. },
  72. }, {
  73. tableName: 'szj_proxy_apply_logs',
  74. });
  75. Model.associate = function() {
  76. };
  77. // 同步:没有就新建,有就不变
  78. Model.sync();
  79. return Model;
  80. };