LuckyGroupOrderMarketing.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace addons\LuckyGroup\common\models;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "{{%lucky_group_order_marketing}}".
  7. *
  8. * @property int $id 主键
  9. * @property int $order_id lucky_group_order表id
  10. * @property float $give_score 赠送积分
  11. * @property float $give_balance 赠送余额
  12. * @property string|null $give_currency 赠送货币(json字符串保存)
  13. * @property float $deduct_score 减扣积分
  14. * @property string|null $deduct_currency 减扣货币(json字符串保存)
  15. * @property float $pay_money 商品实际付款金额,单位:元
  16. * @property float $full_reduce_money 满减金额,单位:元
  17. * @property float $coupon_discount_money 优惠券优惠金额,单位:元
  18. * @property float $member_price_deduct 会员价优惠
  19. * @property string $user_coupon_id 用户优惠券id map
  20. * @property int $status 状态[-1:删除;0:禁用;1启用]
  21. * @property int $created_at 创建时间
  22. * @property int $updated_at 修改时间
  23. */
  24. class LuckyGroupOrderMarketing extends BaseActiveRecord
  25. {
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public static function tableName()
  30. {
  31. return '{{%addons_lucky_group_order_marketing}}';
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function rules()
  37. {
  38. return [
  39. [['order_id', 'status', 'created_at', 'updated_at'], 'integer'],
  40. [['give_score', 'give_balance', 'deduct_score', 'pay_money', 'full_reduce_money', 'coupon_discount_money', 'member_price_deduct'], 'number'],
  41. [['give_currency', 'deduct_currency'], 'string'],
  42. [['user_coupon_id'], 'string', 'max' => 1000],
  43. ];
  44. }
  45. /**
  46. * {@inheritdoc}
  47. */
  48. public function attributeLabels()
  49. {
  50. return [
  51. 'id' => '主键',
  52. 'order_id' => 'lucky_group_order表id',
  53. 'give_score' => '赠送积分',
  54. 'give_balance' => '赠送余额',
  55. 'give_currency' => '赠送货币(json字符串保存)',
  56. 'deduct_score' => '减扣积分',
  57. 'deduct_currency' => '减扣货币(json字符串保存)',
  58. 'pay_money' => '商品实际付款金额,单位:元',
  59. 'full_reduce_money' => '满减金额,单位:元',
  60. 'coupon_discount_money' => '优惠券优惠金额,单位:元',
  61. 'member_price_deduct' => '会员价优惠',
  62. 'user_coupon_id' => '用户优惠券id map',
  63. 'status' => '状态[-1:删除;0:禁用;1启用]',
  64. 'created_at' => '创建时间',
  65. 'updated_at' => '修改时间',
  66. ];
  67. }
  68. }