| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- namespace addons\LuckyGroup\common\models;
- use common\models\base\BaseActiveRecord;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_lucky_group_balance_log".
- *
- * @property int $id
- * @property int $mall_id
- * @property int $user_id
- * @property string $order_no 订单编号
- * @property int $level 拼团等级
- * @property float $change_num 奖励数量
- * @property string $desc 变动说明
- * @property string $capital_type 资金类型
- * @property int $is_send 是否发放:0:否;1:是;2:无效
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at 添加时间戳
- * @property int $updated_at 更新时间戳
- */
- class LuckyGroupBalanceLog extends BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_lucky_group_balance_log}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'user_id', 'level', 'is_send', 'status', 'created_at', 'updated_at'], 'integer'],
- [['change_num'], 'number'],
- [['order_no'], 'string', 'max' => 30],
- [['desc', 'capital_type'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'user_id' => 'User ID',
- 'order_no' => '订单编号',
- 'level' => '拼团等级',
- 'change_num' => '奖励数量',
- 'desc' => '变动说明',
- 'capital_type' => '资金类型',
- 'is_send' => '是否发放:0:否;1:是;2:无效',
- 'status' => '状态[-1:删除;0:禁用;1启用]',
- 'created_at' => '添加时间戳',
- 'updated_at' => '更新时间戳',
- ];
- }
- }
|