| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- namespace addons\LuckyGroup\common\models;
- use common\models\base\BaseActiveRecord;
- use Yii;
- /**
- * This is the model class for table "{{%lucky_group_order_marketing}}".
- *
- * @property int $id 主键
- * @property int $order_id lucky_group_order表id
- * @property float $give_score 赠送积分
- * @property float $give_balance 赠送余额
- * @property string|null $give_currency 赠送货币(json字符串保存)
- * @property float $deduct_score 减扣积分
- * @property string|null $deduct_currency 减扣货币(json字符串保存)
- * @property float $pay_money 商品实际付款金额,单位:元
- * @property float $full_reduce_money 满减金额,单位:元
- * @property float $coupon_discount_money 优惠券优惠金额,单位:元
- * @property float $member_price_deduct 会员价优惠
- * @property string $user_coupon_id 用户优惠券id map
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at 创建时间
- * @property int $updated_at 修改时间
- */
- class LuckyGroupOrderMarketing extends BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_lucky_group_order_marketing}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['order_id', 'status', 'created_at', 'updated_at'], 'integer'],
- [['give_score', 'give_balance', 'deduct_score', 'pay_money', 'full_reduce_money', 'coupon_discount_money', 'member_price_deduct'], 'number'],
- [['give_currency', 'deduct_currency'], 'string'],
- [['user_coupon_id'], 'string', 'max' => 1000],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '主键',
- 'order_id' => 'lucky_group_order表id',
- 'give_score' => '赠送积分',
- 'give_balance' => '赠送余额',
- 'give_currency' => '赠送货币(json字符串保存)',
- 'deduct_score' => '减扣积分',
- 'deduct_currency' => '减扣货币(json字符串保存)',
- 'pay_money' => '商品实际付款金额,单位:元',
- 'full_reduce_money' => '满减金额,单位:元',
- 'coupon_discount_money' => '优惠券优惠金额,单位:元',
- 'member_price_deduct' => '会员价优惠',
- 'user_coupon_id' => '用户优惠券id map',
- 'status' => '状态[-1:删除;0:禁用;1启用]',
- 'created_at' => '创建时间',
- 'updated_at' => '修改时间',
- ];
- }
- }
|