| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace common\models\user;
- use common\models\base\BaseActiveRecord;
- use Yii;
- /**
- * This is the model class for table "qimall_town".
- *
- *
- * @property int $id
- * @property int|null $district_id
- * @property int|null $adcode
- * @property string|null $name
- * @property int $created_at
- * @property int $updated_at
- */
- class Town extends BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%town}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['district_id', 'adcode', 'created_at', 'updated_at'], 'integer'],
- [['name'], 'string', 'max' => 45],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'district_id' => 'District ID',
- 'adcode' => 'Adcode',
- 'name' => 'Name',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- ];
- }
- }
|