SupplierSetting.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%supplier_setting}}".
  11. *
  12. * @property int $id
  13. * @property int $store_id
  14. * @property int|null $mch_id 入驻商id
  15. * @property int $order_create 供货单生成周期
  16. * @property string $address 平台供货收货地址
  17. * @property string $name 收货人名字
  18. * @property string $mobile 收货人电话
  19. * @property int $type 供货方式
  20. * @property int|null $status 是否开启
  21. * @property int $is_delete 是否删除
  22. * @property int|null $repertory_warning 库存警告
  23. * @property int|null $repertory_purchase 采购库存
  24. * @property int|null $province 省id
  25. * @property int|null $city 市id
  26. * @property int|null $district 区id
  27. * @property string|null $longitude 经度
  28. * @property string|null $latitude 纬度
  29. * @property int|null $created_at
  30. * @property int|null $updated_at
  31. */
  32. class SupplierSetting extends \yii\db\ActiveRecord
  33. {
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public static function tableName()
  38. {
  39. return '{{%supplier_setting}}';
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function rules()
  45. {
  46. return [
  47. [['store_id', 'address', 'name', 'mobile'], 'required'],
  48. [['store_id', 'mch_id', 'order_create', 'type', 'status', 'is_delete', 'repertory_warning', 'repertory_purchase', 'province', 'city', 'district', 'created_at', 'updated_at'], 'integer'],
  49. [['address', 'name', 'mobile'], 'string', 'max' => 255],
  50. [['longitude', 'latitude'], 'string', 'max' => 20],
  51. ['is_delete', 'default', 'value' => 0]
  52. ];
  53. }
  54. /**
  55. * {@inheritdoc}
  56. */
  57. public function attributeLabels()
  58. {
  59. return [
  60. 'id' => 'ID',
  61. 'store_id' => 'Store ID',
  62. 'mch_id' => '入驻商id',
  63. 'order_create' => '供货单生成周期',
  64. 'address' => '平台供货收货地址',
  65. 'name' => '收货人名字',
  66. 'mobile' => '收货人电话',
  67. 'type' => '供货方式',
  68. 'status' => '是否开启',
  69. 'is_delete' => '是否删除',
  70. 'repertory_warning' => '库存警告',
  71. 'repertory_purchase' => '采购库存',
  72. 'province' => '省id',
  73. 'city' => '市id',
  74. 'district' => '区id',
  75. 'longitude' => '经度',
  76. 'latitude' => '纬度',
  77. 'created_at' => '创建时间',
  78. 'updated_at' => '更新时间',
  79. ];
  80. }
  81. }