UploadFile.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * This is the model class for table "{{%upload_file}}".
  10. *
  11. * @property integer $id
  12. * @property integer $store_id
  13. * @property string $file_url
  14. * @property string $extension
  15. * @property string $type
  16. * @property integer $size
  17. * @property integer $created_at
  18. * @property integer $is_delete
  19. * @property integer $group_id
  20. * @property integer $mch_id
  21. */
  22. class UploadFile extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * @inheritdoc
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%upload_file}}';
  30. }
  31. /**
  32. * @inheritdoc
  33. */
  34. public function rules()
  35. {
  36. return [
  37. [['store_id'], 'required'],
  38. [['store_id', 'size', 'created_at', 'is_delete', 'group_id', 'mch_id'], 'integer'],
  39. [['file_url'], 'string'],
  40. [['extension', 'type'], 'string', 'max' => 255],
  41. ];
  42. }
  43. /**
  44. * @inheritdoc
  45. */
  46. public function attributeLabels()
  47. {
  48. return [
  49. 'id' => 'ID',
  50. 'store_id' => 'Store ID',
  51. 'file_url' => '文件url',
  52. 'extension' => '文件扩展名',
  53. 'type' => '文件类型:',
  54. 'size' => '文件大小,字节',
  55. 'created_at' => 'Addtime',
  56. 'is_delete' => 'Is Delete',
  57. 'group_id' => '分组id',
  58. 'mch_id' => '商户id',
  59. ];
  60. }
  61. }