Template.php 766 B

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