JobLocation.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * 工地
  6. * This is the model class for table "{{%building}}".
  7. *
  8. * @property string $id
  9. * @property integer $uid
  10. * @property integer $type
  11. * @property string $latitude
  12. * @property string $longitude
  13. * @property string $city
  14. * @property string $district
  15. * @property string $address
  16. * @property integer $created_at
  17. * @property integer $status
  18. * @property integer $updated_at
  19. * @property string $layout
  20. * @property double $acreage
  21. * @property integer $opening_begin
  22. * @property integer $opening_end
  23. * @property string $contact
  24. * @property string $stage
  25. * @property string $pattern
  26. * @property string $budget
  27. * @property string $style
  28. */
  29. class JobLocation extends \yii\db\ActiveRecord
  30. {
  31. /**
  32. * @inheritdoc
  33. */
  34. public static function tableName()
  35. {
  36. return '{{%building}}';
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function rules()
  42. {
  43. return [
  44. [['uid', 'type', 'city', 'district', 'address', 'created_at', 'status', 'updated_at'], 'required'],
  45. [['uid', 'type', 'created_at', 'status', 'updated_at', 'opening_begin', 'opening_end'], 'integer'],
  46. [['acreage', 'budget'], 'number'],
  47. [['latitude', 'longitude', 'city', 'district', 'adress', 'layout', 'stage', 'pattern', 'style','hashcode'], 'string', 'max' => 32],
  48. [['contact'], 'string', 'max' => 120],
  49. ];
  50. }
  51. /**
  52. * @inheritdoc
  53. */
  54. public function attributeLabels()
  55. {
  56. return [
  57. 'id' => 'ID',
  58. 'uid' => 'Uid',
  59. 'type' => 'Type',
  60. 'latitude' => 'Latitude',
  61. 'longitude' => 'Longitude',
  62. 'hashcode'=>'Hashcode',
  63. 'city' => '城市编号',
  64. 'district' => '地区编号',
  65. 'adress' => '地址',
  66. 'created_at' => '创建时间',
  67. 'status' => 'Status',
  68. 'updated_at' => 'Updated At',
  69. 'layout' => '户型',
  70. 'acreage' => '面积',
  71. 'opening_begin' => '可约时间',
  72. 'opening_end' => '可约时间',
  73. 'contact' => '联系方式',
  74. 'stage' => '装修进度',
  75. 'pattern' => '装修模式',
  76. 'budget' => '预算',
  77. 'style' => '风格',
  78. ];
  79. }
  80. }