12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * 工地
- * This is the model class for table "{{%building}}".
- *
- * @property string $id
- * @property integer $uid
- * @property integer $type
- * @property string $latitude
- * @property string $longitude
- * @property string $city
- * @property string $district
- * @property string $address
- * @property integer $created_at
- * @property integer $status
- * @property integer $updated_at
- * @property string $layout
- * @property double $acreage
- * @property integer $opening_begin
- * @property integer $opening_end
- * @property string $contact
- * @property string $stage
- * @property string $pattern
- * @property string $budget
- * @property string $style
- */
- class JobLocation extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%building}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['uid', 'type', 'city', 'district', 'address', 'created_at', 'status', 'updated_at'], 'required'],
- [['uid', 'type', 'created_at', 'status', 'updated_at', 'opening_begin', 'opening_end'], 'integer'],
- [['acreage', 'budget'], 'number'],
- [['latitude', 'longitude', 'city', 'district', 'adress', 'layout', 'stage', 'pattern', 'style','hashcode'], 'string', 'max' => 32],
- [['contact'], 'string', 'max' => 120],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'uid' => 'Uid',
- 'type' => 'Type',
- 'latitude' => 'Latitude',
- 'longitude' => 'Longitude',
- 'hashcode'=>'Hashcode',
- 'city' => '城市编号',
- 'district' => '地区编号',
- 'adress' => '地址',
- 'created_at' => '创建时间',
- 'status' => 'Status',
- 'updated_at' => 'Updated At',
- 'layout' => '户型',
- 'acreage' => '面积',
- 'opening_begin' => '可约时间',
- 'opening_end' => '可约时间',
- 'contact' => '联系方式',
- 'stage' => '装修进度',
- 'pattern' => '装修模式',
- 'budget' => '预算',
- 'style' => '风格',
- ];
- }
- }
|