123456789101112131415161718192021222324 |
- <?php
- namespace app\model;
- use DateTimeInterface;
- use support\Model;
- class Metadata extends Model
- {
- protected $table = 'metadata';
- protected $primaryKey = 'metadata_id';
- protected $dateFormat = 'U';
- const CREATED_AT = 'metadata_addtimes';
- const UPDATED_AT = null;
- protected function serializeDate(DateTimeInterface $date)
- {
- return $date->format('Y-m-d H:i:s');
- }
- }
|