| 12345678910111213141516171819202122232425262728 | 
							- <?php
 
- namespace app\model;
 
- use DateTimeInterface;
 
- use support\Model;
 
- class Order extends Model
 
- {
 
-     protected $table = 'order';
 
-     protected $primaryKey = 'order_id';
 
-     protected $keyType = 'string';
 
-     protected $dateFormat = 'U';
 
-     const CREATED_AT = 'order_addtimes';
 
-     const UPDATED_AT = null;
 
-     const AUTOMATIC_RECEIPT_PREFIX = 'ORDER:AUTOMATIC:RECEIPT:';
 
-     public function serializeDate(DateTimeInterface $date)
 
-     {
 
-         return $date->format('Y-m-d H:i:s');
 
-     }
 
- }
 
 
  |