UserClose.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace common\models;
  3. use common\helpers\Cache;
  4. use common\helpers\Date;
  5. use common\helpers\Form;
  6. use common\helpers\Tool;
  7. use Yii;
  8. /**
  9. * This is the model class for table "{{%USER_CLOSE}}".
  10. *
  11. * @property string $ID
  12. * @property string $USER_ID 会员ID
  13. * @property int $TYPE 类型
  14. * @property int $IS_MANUAL 是否手动操作
  15. * @property int $PERIOD_NUM 期数
  16. * @property int $IS_CLOSE 停|开
  17. * @property string $REMARK 备注
  18. * @property int $AUDIT_STATUS 审核状态
  19. * @property string $ADMIN_ID 操作管理员
  20. * @property string $AUDIT_ADMIN_ID 审核管理员
  21. * @property int $AUDITED_AT 审核时间
  22. * @property int $CREATED_AT 创建时间
  23. */
  24. class UserClose extends \common\components\ActiveRecord
  25. {
  26. const TYPE_GT = 1;
  27. const TYPE_TF = 2;
  28. /**
  29. * @inheritdoc
  30. */
  31. public static function tableName()
  32. {
  33. return '{{%USER_CLOSE}}';
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function rules()
  39. {
  40. return [
  41. [['USER_ID', 'PERIOD_NUM', 'REMARK', 'CREATED_AT'], 'required'],
  42. [['TYPE', 'IS_MANUAL', 'PERIOD_NUM', 'IS_CLOSE', 'AUDIT_STATUS', 'AUDITED_AT', 'CREATED_AT'], 'integer'],
  43. [['ID', 'USER_ID', 'ADMIN_ID', 'AUDIT_ADMIN_ID'], 'string', 'max' => 32],
  44. [['REMARK'], 'string', 'max' => 255],
  45. [['ID'], 'unique'],
  46. ];
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function attributeLabels()
  52. {
  53. return [
  54. 'ID' => 'ID',
  55. 'USER_ID' => '会员ID',
  56. 'TYPE' => '类型',
  57. 'IS_MANUAL' => '是否手动操作',
  58. 'PERIOD_NUM' => '期数',
  59. 'IS_CLOSE' => '停|开',
  60. 'REMARK' => '备注',
  61. 'AUDIT_STATUS' => '审核状态',
  62. 'ADMIN_ID' => '操作管理员',
  63. 'AUDIT_ADMIN_ID' => '审核管理员',
  64. 'AUDITED_AT' => '审核时间',
  65. 'CREATED_AT' => '创建时间',
  66. ];
  67. }
  68. }