MedicalReservationService.php 451 B

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