Your IP : 216.73.216.79


Current Path : /var/www/html/helpdesk/models/
Upload File :
Current File : /var/www/html/helpdesk/models/Projects.php

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "projects".
 *
 * @property int $id
 * @property string $uuid
 * @property string $name
 * @property string $customer_name
 * @property string $start_dt
 * @property string $live_dt
 * @property string $waranty_start
 * @property string $waranty_end
 * @property int $pic1
 * @property int $pic2
 * @property string $created_dt
 * @property int $created_by
 * @property string $updated_dt
 * @property int $updated_by
 */
class Projects extends \yii\db\ActiveRecord {

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

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['name', 'customer_name', 'pic1',], 'required'],
            [['pic2', 'created_by', 'updated_by', 'start_dt', 'live_dt', 'waranty_start', 'waranty_end', 'created_dt', 'updated_dt', 'uuid',], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'uuid' => 'Uuid',
            'name' => 'Project Title',
            'customer_name' => 'Customer Name',
            'start_dt' => 'Project Start Date',
            'live_dt' => 'Project Live Date',
            'waranty_start' => 'Waranty Start',
            'waranty_end' => 'Waranty End',
            'pic1' => 'Person-In-Charge 1',
            'pic2' => 'Person-In-Charge 2',
            'created_dt' => 'Created Dt',
            'created_by' => 'Created By',
            'updated_dt' => 'Updated Dt',
            'updated_by' => 'Updated By',
        ];
    }

}