MediaModel.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Models\Common;
  3. use App\Models\Model;
  4. /**
  5. * App\Models\Common\MediaModel
  6. *
  7. * @property int $id
  8. * @property int $created_at
  9. * @property int $updated_at
  10. * @property string $public_id 公众号id
  11. * @property string $key key
  12. * @property string $value 资源id
  13. * @property string $url 图片地址
  14. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel newModelQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel newQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel query()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel whereCreatedAt($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel whereId($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel whereKey($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel wherePublicId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel whereUpdatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel whereUrl($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\MediaModel whereValue($value)
  24. * @mixin \Eloquent
  25. */
  26. class MediaModel extends Model
  27. {
  28. public $table = 'kdgx_medias';
  29. public $dateFormat = 'U';
  30. public $timestamps = false;
  31. public $fillable = [
  32. 'created_at',
  33. 'updated_at',
  34. 'key',
  35. 'value',
  36. 'url',
  37. 'public_id'
  38. ];
  39. }