ChannelModel.php 491 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * 渠道.
  4. *
  5. * @author jim <jim458734573@gmail.com>
  6. * @date 2020-01-10 21:07:11
  7. */
  8. declare(strict_types=1);
  9. namespace App\Model;
  10. class ChannelModel extends BaseModel
  11. {
  12. /**
  13. * 表名.
  14. *
  15. * @var string
  16. */
  17. protected $table = 'channel';
  18. /**
  19. * 每个字段格式化数据类型.
  20. *
  21. * @var array
  22. */
  23. protected $casts = [
  24. 'id' => 'integer',
  25. 'created_at' => 'string',
  26. 'updated_at' => 'string',
  27. ];
  28. }