Skip to content

Commit 6a5b1da

Browse files
wazzacCopilot
andauthored
Update database/factories/EncryptedAttributesFactory.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 18dde9c commit 6a5b1da

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

database/factories/EncryptedAttributesFactory.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@ class EncryptedAttributesFactory extends Factory
1515
public function definition(): array
1616
{
1717
return [
18-
'entity_id' => null,
19-
'state_id' => null,
20-
'type' => $this->faker->randomElement(['physical', 'billing', 'postal']),
21-
'building_name' => $this->faker->word(),
22-
'floor_number' => $this->faker->word(),
23-
'address1' => $this->faker->streetAddress(),
24-
'address2' => $this->faker->secondaryAddress(),
25-
'city' => $this->faker->city(),
26-
'postcode' => $this->faker->postcode(),
27-
'comments' => $this->faker->text(2000),
18+
'object_type' => $this->faker->randomElement(['type1', 'type2', 'type3']),
19+
'object_id' => $this->faker->numberBetween(1, 1000),
20+
'attribute' => $this->faker->word(),
21+
'hash_index' => $this->faker->sha256(),
22+
'encrypted_value' => $this->faker->text(200),
2823
];
2924
}
3025
}

0 commit comments

Comments
 (0)