Article.php 775 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. /**
  5. * @property integer $id 主键(主键)
  6. * @property string $name 标题
  7. * @property string $img 封面图
  8. * @property string $describe 描述
  9. * @property string $txt 详情
  10. * @property integer $state 状态
  11. * @property integer $is_recommend 推荐
  12. * @property integer $article_type_id 文章类型
  13. * @property string $created_at 创建时间
  14. * @property string $updated_at 更新时间
  15. */
  16. class Article extends Base
  17. {
  18. /**
  19. * The table associated with the model.
  20. *
  21. * @var string
  22. */
  23. protected $table = 'wa_article';
  24. /**
  25. * The primary key associated with the table.
  26. *
  27. * @var string
  28. */
  29. protected $primaryKey = 'id';
  30. }