First Commit
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require '/app/vendor/autoload.php';
|
||||
$app = require_once '/app/bootstrap/app.php';
|
||||
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
||||
$kernel->bootstrap();
|
||||
|
||||
$s = \App\Models\Subject::firstOrCreate(
|
||||
['name' => 'Test Game Subject'],
|
||||
['description' => 'Test game', 'introduction' => 'Test game intro', 'message_type' => 'game_simulator', 'is_system' => false, 'user_id' => 1]
|
||||
);
|
||||
\App\Models\UserSubject::firstOrCreate(
|
||||
['user_id' => 1, 'subject_id' => $s->id],
|
||||
['frequency' => 'daily', 'preferred_times' => ['09:00'], 'insight_language' => 'pt_BR', 'delivery_channels' => ['dashboard'], 'is_active' => true]
|
||||
);
|
||||
echo 'ok';
|
||||
Reference in New Issue
Block a user