Store.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. namespace addons\TinyShop\common\models\order;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_tiny_shop_order_store}}".
  6. *
  7. * @property int $id
  8. * @property int|null $merchant_id 店铺ID
  9. * @property int|null $member_id 用户id
  10. * @property int|null $order_id 订单ID
  11. * @property string|null $title 自提点名称
  12. * @property string|null $cover 封面
  13. * @property string|null $contacts 联系人
  14. * @property string|null $mobile 联系电话
  15. * @property string|null $tel_no 电话号码
  16. * @property int|null $province_id 省ID
  17. * @property int|null $city_id 市ID
  18. * @property int|null $area_id 区县ID
  19. * @property string|null $address_name 地址
  20. * @property string|null $address_details 详细地址
  21. * @property string|null $longitude 经度
  22. * @property string|null $latitude 纬度
  23. * @property string|null $buyer_name 提货人姓名
  24. * @property string|null $buyer_mobile 提货人电话
  25. * @property string|null $remark 提货备注信息
  26. * @property string|null $pickup_code 自提码
  27. * @property int|null $pickup_time 自提时间
  28. * @property int|null $pickup_status 自提状态 0未自提 1已提货
  29. * @property int|null $store_id 自提点门店id
  30. * @property int|null $auditor_id 审核人id
  31. * @property int|null $status 状态
  32. * @property int|null $updated_at 更新时间
  33. * @property int|null $created_at 创建时间
  34. */
  35. class Store extends \common\models\base\BaseModel
  36. {
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public static function tableName()
  41. {
  42. return '{{%addon_tiny_shop_order_store}}';
  43. }
  44. /**
  45. * {@inheritdoc}
  46. */
  47. public function rules()
  48. {
  49. return [
  50. [['merchant_id', 'member_id', 'order_id', 'province_id', 'city_id', 'area_id', 'pickup_time', 'pickup_status', 'store_id', 'auditor_id', 'status', 'updated_at', 'created_at'], 'integer'],
  51. [['title'], 'string', 'max' => 150],
  52. [['cover'], 'string', 'max' => 255],
  53. [['contacts', 'address_details', 'longitude', 'latitude'], 'string', 'max' => 100],
  54. [['mobile', 'buyer_name', 'pickup_code'], 'string', 'max' => 50],
  55. [['tel_no'], 'string', 'max' => 20],
  56. [['address_name', 'remark'], 'string', 'max' => 200],
  57. [['buyer_mobile'], 'string', 'max' => 30],
  58. ];
  59. }
  60. /**
  61. * {@inheritdoc}
  62. */
  63. public function attributeLabels()
  64. {
  65. return [
  66. 'id' => 'ID',
  67. 'merchant_id' => '店铺ID',
  68. 'member_id' => '用户id',
  69. 'order_id' => '订单ID',
  70. 'title' => '自提点名称',
  71. 'cover' => '封面',
  72. 'contacts' => '联系人',
  73. 'mobile' => '联系电话',
  74. 'tel_no' => '电话号码',
  75. 'province_id' => '省ID',
  76. 'city_id' => '市ID',
  77. 'area_id' => '区县ID',
  78. 'address_name' => '地址',
  79. 'address_details' => '详细地址',
  80. 'longitude' => '经度',
  81. 'latitude' => '纬度',
  82. 'buyer_name' => '提货人姓名',
  83. 'buyer_mobile' => '提货人电话',
  84. 'remark' => '提货备注信息',
  85. 'pickup_code' => '自提码',
  86. 'pickup_time' => '自提时间',
  87. 'pickup_status' => '自提状态 0未自提 1已提货',
  88. 'store_id' => '自提点门店id',
  89. 'auditor_id' => '审核人id',
  90. 'status' => '状态',
  91. 'updated_at' => '更新时间',
  92. 'created_at' => '创建时间',
  93. ];
  94. }
  95. }
粤ICP备19079148号