| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%supplier_setting}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int|null $mch_id 入驻商id
- * @property int $order_create 供货单生成周期
- * @property string $address 平台供货收货地址
- * @property string $name 收货人名字
- * @property string $mobile 收货人电话
- * @property int $type 供货方式
- * @property int|null $status 是否开启
- * @property int $is_delete 是否删除
- * @property int|null $repertory_warning 库存警告
- * @property int|null $repertory_purchase 采购库存
- * @property int|null $province 省id
- * @property int|null $city 市id
- * @property int|null $district 区id
- * @property string|null $longitude 经度
- * @property string|null $latitude 纬度
- * @property int|null $created_at
- * @property int|null $updated_at
- */
- class SupplierSetting extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%supplier_setting}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'address', 'name', 'mobile'], 'required'],
- [['store_id', 'mch_id', 'order_create', 'type', 'status', 'is_delete', 'repertory_warning', 'repertory_purchase', 'province', 'city', 'district', 'created_at', 'updated_at'], 'integer'],
- [['address', 'name', 'mobile'], 'string', 'max' => 255],
- [['longitude', 'latitude'], 'string', 'max' => 20],
- ['is_delete', 'default', 'value' => 0]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'mch_id' => '入驻商id',
- 'order_create' => '供货单生成周期',
- 'address' => '平台供货收货地址',
- 'name' => '收货人名字',
- 'mobile' => '收货人电话',
- 'type' => '供货方式',
- 'status' => '是否开启',
- 'is_delete' => '是否删除',
- 'repertory_warning' => '库存警告',
- 'repertory_purchase' => '采购库存',
- 'province' => '省id',
- 'city' => '市id',
- 'district' => '区id',
- 'longitude' => '经度',
- 'latitude' => '纬度',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- ];
- }
- }
|