TmpOldNetworkError.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%TMP_OLD_NETWORK_ERROR}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_NAME 编号
  9. * @property string $REAL_NAME 姓名
  10. * @property string $PARENT_USER_NAME 上级编号
  11. * @property string $PARENT_REAL_NAME 上级姓名
  12. * @property string $NET_USER_NAME 安置人编号
  13. * @property string $NET_REAL_NAME 安置人姓名
  14. * @property int $SORT 排序
  15. * @property int $NET_DEEP 安置深度
  16. * @property int $REC_DEEP 推荐深度
  17. */
  18. class TmpOldNetworkError extends \common\components\ActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%TMP_OLD_NETWORK_ERROR}}';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['USER_NAME', 'REAL_NAME', 'PARENT_USER_NAME', 'PARENT_REAL_NAME', 'NET_USER_NAME', 'NET_REAL_NAME'], 'required'],
  34. [['SORT','NET_DEEP','REC_DEEP'], 'integer'],
  35. [['ID'], 'string', 'max' => 32],
  36. [['USER_NAME', 'PARENT_USER_NAME', 'NET_USER_NAME'], 'string', 'max' => 16],
  37. [['REAL_NAME', 'PARENT_REAL_NAME', 'NET_REAL_NAME'], 'string', 'max' => 128],
  38. [['ID'], 'unique'],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'ID' => 'ID',
  48. 'USER_NAME' => '编号',
  49. 'REAL_NAME' => '姓名',
  50. 'PARENT_USER_NAME' => '上级编号',
  51. 'PARENT_REAL_NAME' => '上级姓名',
  52. 'NET_USER_NAME' => '安置人编号',
  53. 'NET_REAL_NAME' => '安置人姓名',
  54. 'SORT' => '排序',
  55. 'NET_DEEP' => '安置深度',
  56. 'REC_DEEP' => '推荐深度',
  57. ];
  58. }
  59. }