GlobalTableField.php 803 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Model;
  4. use Hyperf\DbConnection\Model\Model;
  5. /**
  6. */
  7. class GlobalTableField extends Model
  8. {
  9. /**
  10. * The table associated with the model.
  11. */
  12. protected ?string $table = 'global_table_field';
  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. 'table_id',
  22. 'field_name',
  23. 'title',
  24. 'field_type',
  25. 'option',
  26. 'length',
  27. 'sort',
  28. 'is_check',
  29. 'admin_display',
  30. 'home_display',
  31. 'disable_del',
  32. ];
  33. /**
  34. * The attributes that should be cast to native types.
  35. */
  36. protected array $casts = [];
  37. }