Your IP : 216.73.216.79


Current Path : /var/www/html/crm/models/
Upload File :
Current File : /var/www/html/crm/models/SalesItem.php

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "sales_item".
 *
 * @property int $id
 * @property int|null $parent_id
 * @property string|null $type
 * @property int|null $quantity
 * @property string|null $amount
 * @property string|null $created_dt
 * @property int|null $created_by
 * @property string|null $updated_dt
 * @property int|null $updated_by
 */
class SalesItem extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'sales_item';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['parent_id', 'quantity', 'created_by', 'updated_by'], 'integer'],
            [['created_dt', 'updated_dt'], 'safe'],
            [['type', 'amount'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'parent_id' => 'Parent ID',
            'type' => 'Type',
            'quantity' => 'Quantity',
            'amount' => 'Amount',
            'created_dt' => 'Created Dt',
            'created_by' => 'Created By',
            'updated_dt' => 'Updated Dt',
            'updated_by' => 'Updated By',
        ];
    }
}