Cinema.php 429 B

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