|
- <?php
- /**
- * 数据库表类 base_area
- * ============================================================================
- * * 版权所有 蜘蛛出行 * *
- * 网站地址: http://www.zhizhuchuxing.com
- * ----------------------------------------------------------------------------
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
- * 使用;不允许对程序代码以任何形式任何目的的再发布。
- * ============================================================================
- * Author By: 倪宗锋
- * PhpStorm LoginController.php
- * Create By 2017/06/26 19:26 $
- */
-
- namespace common\models;
-
- use yii\db\ActiveRecord;
-
- /**
- * 数据库表类 base_area.
- * @property integer $ID
- * @property integer $PARENT_ID
- * @property integer $CANCEL_FLAG
- * @property integer $CREATE_USER_ID
- * @property string $CREATE_TIME
- * @property integer $UPDATE_USER_ID
- * @property string $UPDATE_TIME
- * @property string $AREA_NAME
- * @property string $POSTCODE
- * @property string $POI_TYPE
- * @property integer $POI_TYPE1
- * @property string $POI_TYPE2
- */
- class BaseArea extends ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'base_area';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['ID', 'UPDATE_TIME', 'AREA_NAME'], 'required'],
- [['ID', 'PARENT_ID', 'CANCEL_FLAG', 'CREATE_USER_ID', 'UPDATE_USER_ID', 'POI_TYPE1'], 'integer'],
- [['CREATE_TIME', 'UPDATE_TIME', 'POSTCODE', 'POI_TYPE'], 'string', 'max' => 20],
- [['AREA_NAME'], 'string', 'max' => 100],
- [['POI_TYPE2'], 'string', 'max' => 255],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'PARENT_ID' => 'Parent ID',
- 'CANCEL_FLAG' => 'Cancel Flag',
- 'CREATE_USER_ID' => 'Create User ID',
- 'CREATE_TIME' => 'Create Time',
- 'UPDATE_USER_ID' => 'Update User ID',
- 'UPDATE_TIME' => 'Update Time',
- 'AREA_NAME' => 'Area Name',
- 'POSTCODE' => 'Postcode',
- 'POI_TYPE' => 'Poi Type',
- 'POI_TYPE1' => 'Poi Type1',
- 'POI_TYPE2' => 'Poi Type2',
- ];
- }
- }
|