<?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');
    }
}