TmpDeleteUser.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%TMP_DELETE_USER}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_ID 会员ID
  9. * @property string $USER_NAME 编号
  10. * @property string $REAL_NAME 名称
  11. *
  12. */
  13. class TmpDeleteUser extends \common\components\ActiveRecord
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public static function tableName()
  19. {
  20. return '{{%TMP_DELETE_USER}}';
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['USER_ID', 'USER_NAME', 'REAL_NAME'], 'required'],
  29. [['ID','USER_ID'], 'string', 'max' => 32],
  30. [['USER_NAME'], 'string', 'max' => 16],
  31. [['REAL_NAME'], 'string', 'max' => 128],
  32. [['ID'], 'unique'],
  33. ];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'ID' => 'ID',
  42. 'USER_ID' => 'ID',
  43. 'USER_NAME' => '编号',
  44. 'REAL_NAME' => '名称',
  45. ];
  46. }
  47. }