return \Yii::$app->getDb()
->createCommand()
->insert('user_package', [
'user_id' => 1,
'package_id' => 2,
'created_at' => time(),
'expired_at' => time() * 3600
])
->execute();