rework components
This commit is contained in:
@ -7,6 +7,9 @@ namespace Database\Seeders;
|
||||
use App\Models\Device;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Models\OwnerTransaction;
|
||||
use App\Models\LocationTransaction;
|
||||
use App\Models\PurchasingInformation;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
@ -22,7 +25,9 @@ class DatabaseSeeder extends Seeder
|
||||
// 'email' => 'test@example.com',
|
||||
// ]);
|
||||
|
||||
Device::factory(2)->create();
|
||||
Device::factory(1)->create([
|
||||
'device_id' => '1'
|
||||
]);
|
||||
|
||||
User::create([
|
||||
|
||||
@ -40,5 +45,29 @@ class DatabaseSeeder extends Seeder
|
||||
'has_admin_privileges' => false,
|
||||
'hashed_password' => bcrypt('test123')
|
||||
]);
|
||||
|
||||
PurchasingInformation::create([
|
||||
'purchasing_information_id' => '1',
|
||||
'price' => '1',
|
||||
'timestamp_warranty_end' => '1',
|
||||
'timestamp_purchase' => '1',
|
||||
'cost_centre' => '1',
|
||||
'seller' => '1',
|
||||
'device_id' => '1',
|
||||
]);
|
||||
|
||||
LocationTransaction::create([
|
||||
'location_transaction_id' => '1',
|
||||
'room_code' => '1',
|
||||
'timestamp_located_since' => '1',
|
||||
'device_id' => '1',
|
||||
]);
|
||||
|
||||
OwnerTransaction::create([
|
||||
'owner_transaction_id' => '1',
|
||||
'rz_username' => '1',
|
||||
'timestamp_owner_since' => '1',
|
||||
'device_id' => '1',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user