<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "list_of_hotels".
 *
 * @property int $id
 * @property string $hotel_name
 * @property string $hotel_name_english
 * @property string $hotel_image
 * @property string $hotel_address
 * @property string $per_day_price
 * @property string $security_deposit
 * @property string $number_of_rooms
 * @property string $zone_id
 * @property string $ward_id
 * @property string $status
 * @property string $desc1
 * @property string $desc2
 * @property string $desc3
 * @property string $desc_title1
 * @property string $desc_title2
 * @property string $desc_title3
 * @property string $slider_image1
 * @property string $slider_image2
 * @property string $slider_image3
 * @property string $lat
 * @property string $lon
 * @property string $term_and_condition
 * @property int $created_by
 * @property string $created_at
 * @property int $updated_by
 * @property string $updated_at
 * @property int $comm_hall_type 1 - Govt, 2 - Pvt
 */
class ListOfHotels extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'list_of_hotels';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['hotel_name', 'hotel_name_english', 'hotel_image', 'hotel_address', 'per_day_price', 'number_of_rooms', 'zone_id', 'ward_id', 'status', 'desc1', 'desc2', 'desc3', 'desc_title1', 'desc_title2', 'desc_title3', 'slider_image1', 'slider_image2', 'slider_image3', 'term_and_condition', 'created_by', 'created_at', 'updated_by', 'comm_hall_type'], 'required'],
            [['term_and_condition'], 'string'],
            [['created_by', 'updated_by', 'comm_hall_type'], 'integer'],
            [['created_at', 'updated_at'], 'safe'],
            [['hotel_name', 'hotel_name_english'], 'string', 'max' => 100],
            [['hotel_image', 'per_day_price', 'slider_image1', 'slider_image2', 'slider_image3'], 'string', 'max' => 50],
            [['hotel_address', 'desc1', 'desc2', 'desc3'], 'string', 'max' => 300],
            [['security_deposit'], 'string', 'max' => 10],
            [['number_of_rooms'], 'string', 'max' => 5],
            [['zone_id'], 'string', 'max' => 4],
            [['ward_id'], 'string', 'max' => 6],
            [['status'], 'string', 'max' => 1],
            [['desc_title1', 'desc_title2', 'desc_title3', 'lat', 'lon'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'hotel_name' => 'Hotel Name',
            'hotel_name_english' => 'Hotel Name English',
            'hotel_image' => 'Hotel Image',
            'hotel_address' => 'Hotel Address',
            'per_day_price' => 'Per Day Price',
            'security_deposit' => 'Security Deposit',
            'number_of_rooms' => 'Number Of Rooms',
            'zone_id' => 'Zone ID',
            'ward_id' => 'Ward ID',
            'status' => 'Status',
            'desc1' => 'Desc1',
            'desc2' => 'Desc2',
            'desc3' => 'Desc3',
            'desc_title1' => 'Desc Title1',
            'desc_title2' => 'Desc Title2',
            'desc_title3' => 'Desc Title3',
            'slider_image1' => 'Slider Image1',
            'slider_image2' => 'Slider Image2',
            'slider_image3' => 'Slider Image3',
            'lat' => 'Lat',
            'lon' => 'Lon',
            'term_and_condition' => 'Term And Condition',
            'created_by' => 'Created By',
            'created_at' => 'Created At',
            'updated_by' => 'Updated By',
            'updated_at' => 'Updated At',
            'comm_hall_type' => 'Comm Hall Type',
        ];
    }
}
