| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "xhUserAddress".
- *
- * @property string $id
- * @property int $userId 商家id/用户id
- * @property string $name 收货人姓名
- * @property string $phone 手机号
- * @property string $tag 标签
- * @property string $lat 纬度
- * @property string $long 经度
- * @property string $province 省
- * @property string $city 市
- * @property string $dist 区县
- * @property string $address 街道地址
- * @property string $floor 楼号门牌号
- * @property string $fullAddress 完整地址
- * @property string $showAddress 地图接口显示的完整地址
- * @property int $default 是否默认地址
- * @property string $addTime 添加时间
- * @property string $updateTime
- */
- class xhUserAddress extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'xhUserAddress';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['userId', 'default'], 'integer'],
- [['addTime', 'updateTime'], 'safe'],
- [['lat', 'long'], 'string', 'max' => 20],
- [['name', 'phone', 'tag'], 'string', 'max' => 50],
- [['province', 'city', 'dist'], 'string', 'max' => 100],
- [['address', 'fullAddress'], 'string', 'max' => 500],
- [['floor'], 'string', 'max' => 50],
- [['showAddress'], 'string', 'max' => 900],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'userId' => 'User ID',
- 'name' => 'Name',
- 'phone' => 'Phone',
- 'tag' => 'Tag',
- 'lat' => 'Lat',
- 'long' => 'Long',
- 'province' => 'Province',
- 'city' => 'City',
- 'dist' => 'Dist',
- 'address' => 'Address',
- 'floor' => 'Floor',
- 'fullAddress' => 'Full Address',
- 'showAddress' => 'Show Address',
- 'default' => 'Default',
- 'addTime' => 'Add Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|