SysMessage.php 415 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\model;
  3. use DateTimeInterface;
  4. use support\Model;
  5. class SysMessage extends Model
  6. {
  7. protected $table = 'sys_message';
  8. protected $primaryKey = 'message_id';
  9. protected $dateFormat = 'U';
  10. const CREATED_AT = 'message_addtimes';
  11. const UPDATED_AT = null;
  12. protected function serializeDate(DateTimeInterface $date)
  13. {
  14. return $date->format('Y-m-d H:i:s');
  15. }
  16. }