Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

61 righe
1.5 KiB

  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "base_resource_property".
  6. *
  7. * @property integer $ID
  8. * @property integer $CANCEL_FLAG
  9. * @property integer $CREATE_USER_ID
  10. * @property string $CREATE_TIME
  11. * @property integer $UPDATE_USER_ID
  12. * @property string $UPDATE_TIME
  13. * @property integer $RES_ID
  14. * @property integer $TYPE_ID
  15. * @property string $PROPERTY
  16. */
  17. class BaseResourceProperty extends ActiveRecord
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return 'base_resource_property';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['CANCEL_FLAG', 'CREATE_USER_ID', 'UPDATE_USER_ID', 'RES_ID', 'TYPE_ID'], 'integer'],
  33. [['PROPERTY'], 'required'],
  34. [['PROPERTY'], 'string'],
  35. [['CREATE_TIME', 'UPDATE_TIME'], 'string', 'max' => 20],
  36. ];
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'ID' => 'ID',
  45. 'CANCEL_FLAG' => '记录有效性标记,CANCEL_FLAG=0记录有效;CANCEL_FLAG=1,记录已删除',
  46. 'CREATE_USER_ID' => '记录创建用户ID',
  47. 'CREATE_TIME' => '记录创建时间',
  48. 'UPDATE_USER_ID' => '记录最后更新用户ID',
  49. 'UPDATE_TIME' => '记录最后更新时间',
  50. 'RES_ID' => '资源ID',
  51. 'TYPE_ID' => '资源类别,DICT_TYPE.ID',
  52. 'PROPERTY' => '资源类别的值',
  53. ];
  54. }
  55. }