| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace addons\DoubleCopy\common\models;
- use Yii;
- /**
- * This is the model class for table "{{%addons_double_copy_pool_log}}".
- *
- * @property int $id
- * @property int $send_id double_copy_pool_send.id
- * @property int $mall_id 商城ID
- * @property int $user_id 等级(权重)
- * @property int $level 等级(权重)
- * @property float|null $total_bonus_money 本次分红总额,单位:元
- * @property int|null $bonus_num 分红人数
- * @property float|null $bonus_money 可得分红金额,单位:元
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int|null $created_at 创建时间
- * @property int|null $updated_at 更新时间
- * @property string $reward_currency 奖励类型:佣金-commission,积分-score
- */
- class DoubleCopyPoolLog extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_double_copy_pool_log}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['send_id', 'mall_id', 'user_id', 'level', 'bonus_num', 'status', 'created_at', 'updated_at'], 'integer'],
- [['total_bonus_money', 'bonus_money'], 'number'],
- [['reward_currency'],'string']
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'send_id' => 'double_copy_pool_send.id',
- 'mall_id' => '商城ID',
- 'user_id' => '等级(权重)',
- 'level' => '等级(权重)',
- 'total_bonus_money' => '本次分红总额,单位:元',
- 'bonus_num' => '分红人数',
- 'bonus_money' => '可得分红金额,单位:元',
- 'status' => '状态[-1:删除;0:禁用;1启用]',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- ];
- }
- }
|