GlobalTable.php 585 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Model;
  4. use Hyperf\DbConnection\Model\Model;
  5. /**
  6. */
  7. class GlobalTable extends Model
  8. {
  9. /**
  10. * The table associated with the model.
  11. */
  12. protected ?string $table = 'global_table';
  13. /**
  14. * The connection name for the model.
  15. */
  16. protected ?string $connection = 'global';
  17. /**
  18. * The attributes that are mass assignable.
  19. */
  20. protected array $fillable = [
  21. 'website_id'
  22. ];
  23. /**
  24. * The attributes that should be cast to native types.
  25. */
  26. protected array $casts = [];
  27. }