FullMail.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace addons\TinyShop\common\models\marketing;
  3. use common\behaviors\MerchantBehavior;
  4. /**
  5. * This is the model class for table "{{%addon_tiny_shop_marketing_full_mail}}".
  6. *
  7. * @property int $id
  8. * @property int $merchant_id 店铺id
  9. * @property float $full_mail_money 包邮所需订单金额
  10. * @property string|null $no_mail_province_ids 不包邮省id组
  11. * @property string|null $no_mail_city_ids 不包邮市id组
  12. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  13. * @property int|null $created_at 添加时间
  14. * @property int|null $updated_at 修改时间
  15. */
  16. class FullMail extends \common\models\base\BaseModel
  17. {
  18. use MerchantBehavior;
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%addon_tiny_shop_marketing_full_mail}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['merchant_id', 'status', 'created_at', 'updated_at'], 'integer'],
  33. [['full_mail_money'], 'number', 'min' => 0],
  34. [['full_mail_money', 'status'], 'required'],
  35. [['no_mail_province_ids', 'no_mail_city_ids'], 'safe'],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'merchant_id' => '店铺id',
  46. 'full_mail_money' => '包邮所需订单金额',
  47. 'no_mail_province_ids' => '不包邮省id组',
  48. 'no_mail_city_ids' => '不包邮市id组',
  49. 'status' => '状态',
  50. 'created_at' => '添加时间',
  51. 'updated_at' => '修改时间',
  52. ];
  53. }
  54. }
粤ICP备19079148号