Certification.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. namespace common\models\member;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%member_certification}}".
  6. *
  7. * @property int $id
  8. * @property int|null $merchant_id 商户id
  9. * @property int|null $member_id 用户id
  10. * @property int|null $member_type 用户类型
  11. * @property string|null $realname 真实姓名
  12. * @property string|null $identity_card 身份证号码
  13. * @property string|null $identity_card_front 身份证国徽面
  14. * @property string|null $identity_card_back 身份证人像面
  15. * @property string|null $gender 性别
  16. * @property string|null $birthday 生日
  17. * @property string|null $address 地址
  18. * @property int|null $front_is_fake 正面是否是复印件
  19. * @property int|null $back_is_fake 背面是否是复印件
  20. * @property string|null $nationality 民族
  21. * @property string|null $start_date 有效期起始时间
  22. * @property string|null $end_date 有效期结束时间
  23. * @property string|null $issue 签发机关
  24. * @property int|null $is_self 自己认证
  25. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  26. * @property int|null $created_at 创建时间
  27. * @property int|null $updated_at 修改时间
  28. */
  29. class Certification extends \common\models\base\BaseModel
  30. {
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public static function tableName()
  35. {
  36. return '{{%member_certification}}';
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function rules()
  42. {
  43. return [
  44. [['merchant_id', 'member_id', 'member_type', 'front_is_fake', 'back_is_fake', 'is_self', 'status', 'created_at', 'updated_at'], 'integer'],
  45. [['birthday', 'start_date', 'end_date'], 'safe'],
  46. [['realname', 'nationality'], 'string', 'max' => 100],
  47. [['identity_card'], 'string', 'max' => 50],
  48. [['identity_card_front', 'address', 'identity_card_back', 'issue'], 'string', 'max' => 200],
  49. [['gender'], 'string', 'max' => 10],
  50. ];
  51. }
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function attributeLabels()
  56. {
  57. return [
  58. 'id' => 'ID',
  59. 'merchant_id' => '商户id',
  60. 'member_id' => '用户id',
  61. 'member_type' => '用户类型',
  62. 'realname' => '真实姓名',
  63. 'identity_card' => '身份证号码',
  64. 'identity_card_front' => '身份证国徽面',
  65. 'identity_card_back' => '身份证人像面',
  66. 'address' => '地址',
  67. 'gender' => '性别',
  68. 'birthday' => '生日',
  69. 'front_is_fake' => '正面是否是复印件',
  70. 'back_is_fake' => '背面是否是复印件',
  71. 'nationality' => '民族 ',
  72. 'start_date' => '有效期起始时间',
  73. 'end_date' => '有效期结束时间',
  74. 'issue' => '签发机关 ',
  75. 'is_self' => '自己认证',
  76. 'status' => '状态[-1:删除;0:禁用;1启用]',
  77. 'created_at' => '创建时间',
  78. 'updated_at' => '修改时间',
  79. ];
  80. }
  81. }
粤ICP备19079148号