UserAuditSetting.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\behaviors\TimestampBehavior;
  9. /**
  10. * Class UserAuditSetting
  11. * @package app\models
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $status
  15. * @property string $bg_image
  16. * @property string $form_name
  17. * @property string $custom_form
  18. * @property string $protocol
  19. * @property integer $created_at
  20. * @property integer $updated_at
  21. *
  22. **/
  23. class UserAuditSetting extends \yii\db\ActiveRecord
  24. {
  25. const STATUS_CLOSE = 0;
  26. const STATUS_OPEN = 1;
  27. const STATUS_ARR = [
  28. self::STATUS_CLOSE,
  29. self::STATUS_OPEN
  30. ];
  31. /**
  32. * @inheritdoc
  33. */
  34. public static function tableName()
  35. {
  36. return '{{%user_audit_setting}}';
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function rules()
  42. {
  43. return [
  44. [['id', 'store_id', 'status', 'created_at', 'updated_at'], 'integer'],
  45. [['bg_image', 'form_name', 'custom_form', 'protocol'], 'string']
  46. ];
  47. }
  48. public function behaviors()
  49. {
  50. return [
  51. [
  52. 'class' => TimestampBehavior::class
  53. ]
  54. ];
  55. }
  56. /**
  57. * @inheritdoc
  58. */
  59. public function attributeLabels()
  60. {
  61. return [
  62. 'id' => '',
  63. 'store_id' => '店铺id',
  64. 'status' => '是否开启审核登陆',
  65. 'bg_image' => '头部背景',
  66. 'form_name' => '表单名称',
  67. 'custom_form' => '表单信息',
  68. 'protocol' => '用户协议',
  69. 'created_at' => '',
  70. 'updated_at' => ''
  71. ];
  72. }
  73. }