RefundAddress.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 "{{%refund_address}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $mch_id
  15. * @property string $name
  16. * @property string $address
  17. * @property string $mobile
  18. * @property integer $is_delete
  19. * @property integer $is_default
  20. */
  21. class RefundAddress extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * @inheritdoc
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%refund_address}}';
  29. }
  30. /**
  31. * @inheritdoc
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['store_id','mch_id', 'is_delete', 'is_default'], 'integer'],
  37. [['name', 'address', 'mobile'], 'string', 'max' => 255],
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'store_id' => 'Store ID',
  48. 'mch_id' => 'mch ID',
  49. 'name' => '收件人名称',
  50. 'address' => '收件人地址',
  51. 'mobile' => '收件人电话',
  52. 'is_delete' => 'Is Delete',
  53. 'is_default' => '地址是否默认'
  54. ];
  55. }
  56. }