AttachmentTrash.php 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace app\modules\admin\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%attachment_trash}}".
  6. *
  7. * @property int $id
  8. * @property int $a_id
  9. * @property string $file_path
  10. * @property int $is_oss
  11. * @property int $create_time
  12. */
  13. class AttachmentTrash extends \app\common\models\EActiveRecord
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public static function tableName()
  19. {
  20. return '{{%attachment_trash}}';
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['a_id', 'is_oss', 'create_time'], 'integer'],
  29. [['file_path', 'create_time'], 'required'],
  30. [['file_path'], 'string', 'max' => 500],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'a_id' => 'A ID',
  41. 'file_path' => 'File Path',
  42. 'is_oss' => 'Is Oss',
  43. 'create_time' => 'Create Time',
  44. ];
  45. }
  46. }