Component.php 850 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Model;
  4. use Hyperf\DbConnection\Model\Model;
  5. /**
  6. * @property int $id
  7. * @property int $template_id
  8. * @property int $sector_id
  9. * @property string $component_name
  10. * @property string $component_img
  11. * @property string $component_code
  12. * @property \Carbon\Carbon $created_at
  13. * @property \Carbon\Carbon $updated_at
  14. */
  15. class Component extends Model
  16. {
  17. /**
  18. * The table associated with the model.
  19. */
  20. protected ?string $table = 'component';
  21. /**
  22. * The attributes that are mass assignable.
  23. */
  24. protected array $fillable = [];
  25. /**
  26. * The attributes that should be cast to native types.
  27. */
  28. protected array $casts = ['id' => 'integer', 'template_id' => 'integer', 'sector_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
  29. }