Your IP : 216.73.216.79


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

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "sales_funnel".
 *
 * @property int $id
 * @property string $uuid
 * @property string $title
 * @property string $descr
 * @property int $customer_id
 * @property string $sales_val
 * @property string $status
 * @property string $created_dt
 * @property int $created_by
 * @property string $updated_dt
 * @property int $updated_by
 * @property int $deleted_status
 */
class SalesFunnel extends \yii\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return 'sales_funnel';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['title', 'sales_val', 'status'], 'required'],
            [['descr'], 'string'],
            [['customer_id', 'created_by', 'updated_by', 'deleted_status'], 'integer'],
            [['created_dt', 'updated_dt', 'uuid'], 'safe'],
            [['title', 'sales_val', 'status'], 'string', 'max' => 255],
            [['sales_val'], 'number'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'uuid' => 'Uuid',
            'title' => 'Project Title',
            'descr' => 'Description',
            'customer_id' => 'Customer',
            'sales_val' => 'Project Value',
            'status' => 'Status',
            'created_dt' => 'Created Dt',
            'created_by' => 'Created By',
            'updated_dt' => 'Updated Dt',
            'updated_by' => 'Updated By',
            'deleted_status' => 'Deleted Status',
        ];
    }

}