Article.php 262 B

12345678910111213141516171819
  1. <?php
  2. namespace app\model;
  3. use support\Model;
  4. class Article extends Model
  5. {
  6. protected $table = 'article';
  7. protected $primaryKey = 'id';
  8. protected $dateFormat = 'U';
  9. const CREATED_AT = 'create_time';
  10. const UPDATED_AT = 'update_time';
  11. }