Archived
1
0
Fork 0

Initial Commit

This commit is contained in:
Henrik Hautakoski 2020-10-03 16:07:18 +02:00
commit 9b22323711
36 changed files with 7164 additions and 0 deletions

BIN
database/database.sqlite Normal file

Binary file not shown.

View file

View file

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Initial extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('words', function (Blueprint $table) {
$table->id();
$table->uuid('uuid')->unique()->index();
$table->string('value')->unique();
$table->enum('type', ['sex', 'yoga']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View file

@ -0,0 +1,17 @@
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(WordsTableSexSeeder::class);
$this->call(WordsTableYogaSeeder::class);
}
}

View file

@ -0,0 +1,46 @@
<?php
use App\Models\Word;
use Illuminate\Database\Seeder;
class WordsTableSexSeeder extends Seeder
{
protected $_list = [
"Heta stolen",
"Den omvända saxen",
"Spindeln",
"Skeden",
"Saxen",
"Vattenfall",
"Enkel skottkärra",
"Svår skottkärra",
"Balettdansösen",
"Deep Stick",
"Fjärilen",
"Maneten",
"Body guard",
"Leg Glider",
"Korset",
"Arken",
"Borren",
"Dansaren",
"Trappa till himlen",
"Kringlan",
"Den Stående Draken"
];
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
foreach($this->_list as $value) {
Word::create([
'value' => $value,
'type' => 'sex'
]);
}
}
}

View file

@ -0,0 +1,38 @@
<?php
use App\Models\Word;
use Illuminate\Database\Seeder;
class WordsTableYogaSeeder extends Seeder
{
protected $_list = [
"Nedåtgående hund",
"Högt utfall",
"Lågt utfall",
"Glada barnet",
"Halvmånen",
"Sittande halv ryggradsrotation",
"Omvänd bordspositon",
"Halv stående framåtfällning",
"Kråkan",
"Kobran",
"Bananen",
"Fyrsidig Stavposition",
"Kopositionen"
];
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
foreach($this->_list as $value) {
Word::create([
'value' => $value,
'type' => 'yoga'
]);
}
}
}