| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace addons\LuckyGroup\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_lucky_group_commission_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 LuckyGroupCommissionLog extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_lucky_group_commission_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' => '更新时间戳',
- ];
- }
- }
|