<?php

namespace SRVX\Model;

class CentralKitchenForSchoolPackageOrd extends BasicModel
{

    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var integer
     */
    public $enterprise_id;

    /**
     *
     * @var integer
     */
    public $uid;

    /**
     *
     * @var string
     */
    public $user_identity_name;

    /**
     *
     * @var integer
     */
    public $user_identity_id;

    /**
     *
     * @var double
     */
    public $total_price;

    /**
     *
     * @var integer
     */
    public $kind;

    /**
     *
     * @var string
     */
    public $out_trade_no;

    /**
     *
     * @var string
     */
    public $trade_no;

    /**
     *
     * @var integer
     */
    public $state;

    /**
     *
     * @var integer
     */
    public $ord_state;

    /**
     *
     * @var string
     */
    public $req_content;

    /**
     *
     * @var string
     */
    public $with_day_data;

    /**
     *
     * @var string
     */
    public $create_at;

    /**
     *
     * @var string
     */
    public $update_at;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSource("central_kitchen_for_school_package_ord");
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return CentralKitchenForSchoolPackageOrd[]|CentralKitchenForSchoolPackageOrd|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null): \Phalcon\Mvc\Model\ResultsetInterface
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return CentralKitchenForSchoolPackageOrd|\Phalcon\Mvc\Model\ResultInterface|\Phalcon\Mvc\ModelInterface|null
     */
    public static function findFirst($parameters = null): ?\Phalcon\Mvc\ModelInterface
    {
        return parent::findFirst($parameters);
    }

}
