<?php

namespace SRVX\Model;

class SelfSupportForSchoolOrd extends BasicModel
{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return SelfSupportForSchoolOrd[]|SelfSupportForSchoolOrd|\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 SelfSupportForSchoolOrd|\Phalcon\Mvc\Model\ResultInterface|\Phalcon\Mvc\ModelInterface|null
     */
    public static function findFirst($parameters = null): ?\Phalcon\Mvc\ModelInterface
    {
        return parent::findFirst($parameters);
    }

}
