Your IP : 216.73.216.79


Current Path : /var/www/html/dyna-crm/models/
Upload File :
Current File : /var/www/html/dyna-crm/models/SopSubcontent.php

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "sop_subcontent".
 *
 * @property int $id
 * @property string $uuid
 * @property int $parent_id
 * @property string $title
 * @property int $sort
 * @property string $content
 * @property string $created_dt
 * @property int $created_by
 * @property string $updated_dt
 * @property int $updated_by
 */
class SopSubcontent extends \yii\db\ActiveRecord {

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

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

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'uuid' => 'Uuid',
            'parent_id' => 'Parent ID',
            'title' => 'Sub SOP Name',
            'sort' => 'Sort',
            'content' => 'Content',
            'created_dt' => 'Created Dt',
            'created_by' => 'Created By',
            'updated_dt' => 'Last Update',
            'updated_by' => 'Updated By',
        ];
    }

}