feat: Implement Ledger alignment and correct corrective mutation authors in seeders
This commit is contained in:
@@ -94,6 +94,7 @@ class DatabaseSeeder extends Seeder
|
||||
'name' => 'Curfew Compliance',
|
||||
'rules' => 'Must be in bed and checked in by 11:00 PM.',
|
||||
'score' => 35,
|
||||
'alignment' => 'positive',
|
||||
]);
|
||||
|
||||
$cleaningLedger = Ledger::create([
|
||||
@@ -101,6 +102,7 @@ class DatabaseSeeder extends Seeder
|
||||
'name' => 'Dungeon Cleaning',
|
||||
'rules' => 'Earn +10 to +20 points for cleaning/setup. Penalty -10 for disorganization.',
|
||||
'score' => 45,
|
||||
'alignment' => 'neutral',
|
||||
]);
|
||||
|
||||
$etiquetteLedger = Ledger::create([
|
||||
@@ -108,6 +110,7 @@ class DatabaseSeeder extends Seeder
|
||||
'name' => 'Protocol & Etiquette',
|
||||
'rules' => 'Address others by correct titles. -5 per infraction.',
|
||||
'score' => -15,
|
||||
'alignment' => 'negative',
|
||||
]);
|
||||
|
||||
// Seed Curfew Mutations
|
||||
@@ -168,7 +171,7 @@ class DatabaseSeeder extends Seeder
|
||||
|
||||
Mutation::create([
|
||||
'ledger_id' => $cleaningLedger->id,
|
||||
'user_id' => $bob->id,
|
||||
'user_id' => $alice->id,
|
||||
'type' => 'penalty',
|
||||
'amount' => -10,
|
||||
'description' => 'Left keys in the locks unmonitored',
|
||||
@@ -209,7 +212,7 @@ class DatabaseSeeder extends Seeder
|
||||
// Seed Etiquette Mutations
|
||||
Mutation::create([
|
||||
'ledger_id' => $etiquetteLedger->id,
|
||||
'user_id' => $bob->id,
|
||||
'user_id' => $alice->id,
|
||||
'type' => 'penalty',
|
||||
'amount' => -5,
|
||||
'description' => 'Interrupted Domina Alice during daily instructions',
|
||||
@@ -218,7 +221,7 @@ class DatabaseSeeder extends Seeder
|
||||
|
||||
Mutation::create([
|
||||
'ledger_id' => $etiquetteLedger->id,
|
||||
'user_id' => $bob->id,
|
||||
'user_id' => $alice->id,
|
||||
'type' => 'penalty',
|
||||
'amount' => -10,
|
||||
'description' => 'Forgot correct posture during morning roll call',
|
||||
@@ -227,7 +230,7 @@ class DatabaseSeeder extends Seeder
|
||||
|
||||
Mutation::create([
|
||||
'ledger_id' => $etiquetteLedger->id,
|
||||
'user_id' => $bob->id,
|
||||
'user_id' => $alice->id,
|
||||
'type' => 'penalty',
|
||||
'amount' => -5,
|
||||
'description' => 'Spoke out of turn in general chat',
|
||||
@@ -288,6 +291,7 @@ class DatabaseSeeder extends Seeder
|
||||
'name' => 'Kitchen Chores',
|
||||
'rules' => 'Scores for dishwashing, trash duty, and deep oven cleaning.',
|
||||
'score' => 40,
|
||||
'alignment' => 'positive',
|
||||
]);
|
||||
|
||||
$coffeeLedger = Ledger::create([
|
||||
@@ -295,6 +299,7 @@ class DatabaseSeeder extends Seeder
|
||||
'name' => 'Coffee Machine Maintenance',
|
||||
'rules' => ' refill beans and descale monthly.',
|
||||
'score' => 10,
|
||||
'alignment' => 'neutral',
|
||||
]);
|
||||
|
||||
// Seed Chores Mutations
|
||||
|
||||
Reference in New Issue
Block a user