Your IP : 216.73.216.79


Current Path : /var/www/html/ebookingdbkl/backend/modules/serviceApplication/models/
Upload File :
Current File : /var/www/html/ebookingdbkl/backend/modules/serviceApplication/models/ServiceImg.php

<?php

namespace backend\modules\serviceApplication\models;

use Yii;
use backend\modules\serviceApplication\Module as M;

/**
 * This is the model class for table "service_img".
 *
 * @property int $img_id * 
 * @property int|null $service_id
 * @property string|null $img_path
 * @property string|null $img_remarks
 * @property string|null $created_at
 * @property int|null $created_by
 * @property string|null $updated_at
 * @property int|null $updated_by
 */
class ServiceImg extends \yii\db\ActiveRecord {

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

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['service_id','img_path'], 'required'],
            [['created_at', 'updated_at', 'service_id', 'img_path'], 'safe'],
            [['created_by', 'updated_by','img_sort'], 'integer'],
            [['img_remarks'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'img_id' => M::t('app', 'ImageID'),
            'service_id' => M::t('app', 'Service ID'),
            'img_path' => M::t('app', 'Thumbnail'),
            'img_remarks' => M::t('app', 'Remarks'),
            'img_sort' => M::t('app', 'Sorting'),
            'created_at' => M::t('app', 'CreatedAt'),
            'created_by' => M::t('app', 'CreatedBy'),
            'updated_at' => M::t('app', 'UpdatedAt'),
            'updated_by' => M::t('app', 'UpdatedBy'),
        ];
    }

}