-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
835 changed files
with
39,755 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\Account; | ||
|
||
class AccountFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = Account::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name(), | ||
'description' => $this->faker->text(500), | ||
'account_type' => $this->faker->randomElement([ | ||
'TYPE1', | ||
'TYPE2', | ||
]), | ||
'industry' => $this->faker->word(10), | ||
'annual_revenue' => $this->faker->word(10), | ||
'phone_fax' => $this->faker->phoneNumber(), | ||
'billing_address_street' => $this->faker->streetName(), | ||
'billing_address_city' => $this->faker->city(), | ||
'billing_address_state' => $this->faker->state(), | ||
'billing_address_country' => $this->faker->country(), | ||
'billing_address_postalcode' => $this->faker->postcode(), | ||
'rating' => $this->faker->text(50), | ||
'phone_office' => $this->faker->phoneNumber(), | ||
'phone_alternate' => $this->faker->phoneNumber(), | ||
'website' => $this->faker->url(), | ||
'ownership' => $this->faker->text(50), | ||
'employees' => $this->faker->text(10), | ||
'ticker_symbol' => $this->faker->text(10), | ||
'shipping_address_street' => $this->faker->streetName(), | ||
'shipping_address_city' => $this->faker->city(), | ||
'shipping_address_state' => $this->faker->state(), | ||
'shipping_address_country' => $this->faker->country(), | ||
'shipping_address_postalcode' => $this->faker->postcode(), | ||
'sic_code' => $this->faker->text(10), | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\AosPdfTemplate; | ||
|
||
class AosPdfTemplateFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = AosPdfTemplate::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name(), | ||
'description' => $this->faker->text(500), | ||
'active' => $this->faker->boolean(), | ||
'type' => $this->faker->randomElement([ | ||
'TYPE1', | ||
'TYPE2', | ||
]), | ||
'pdfheader' => $this->faker->paragraphs(10, true), | ||
'pdffooter' => $this->faker->paragraphs(10, true), | ||
'margin_left' => $this->faker->numberBetween(10, 20), | ||
'margin_right' => $this->faker->numberBetween(10, 20), | ||
'margin_top' => $this->faker->numberBetween(10, 20), | ||
'margin_bottom' => $this->faker->numberBetween(10, 20), | ||
'margin_header' => $this->faker->numberBetween(10, 20), | ||
'margin_footer' => $this->faker->numberBetween(10, 20), | ||
'page_size' => $this->faker->numberBetween(100, 200) . ' KB', | ||
'orientation' => $this->faker->randomElement([ | ||
'LANDSCAPE', | ||
'PORTRAIT', | ||
]), | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\AosProductCategory; | ||
|
||
class AosProductCategoryFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = AosProductCategory::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name(), | ||
'description' => $this->faker->text(500), | ||
'is_parent' => $this->faker->boolean(), | ||
'parent_category_id' => null, | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\AosSample; | ||
|
||
class AosSampleFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = AosSample::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name(), | ||
'description' => $this->faker->text(500), | ||
'status' => $this->faker->randomElement([ | ||
'ACTIVE', | ||
'INACTIVE', | ||
]), | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\AowWorkflow; | ||
|
||
class AowWorkflowFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = AowWorkflow::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name(), | ||
'description' => $this->faker->text(500), | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\Bug; | ||
|
||
class BugFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = Bug::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name(), | ||
'description' => $this->faker->text(500), | ||
'bug_number' => $this->faker->unique()->numberBetween(1, 1000), | ||
'type' => $this->faker->randomElement([ | ||
'TYPE1', | ||
'TYPE2', | ||
]), | ||
'status' => $this->faker->randomElement([ | ||
'ACTIVE', | ||
'INACTIVE', | ||
]), | ||
'priority' => $this->faker->randomElement([ | ||
'LOW', | ||
'MEDIUM', | ||
'HIGH', | ||
]), | ||
'resolution' => $this->faker->randomElement([ | ||
'YES', | ||
'NO', | ||
]), | ||
'work_log' => $this->faker->text(100), | ||
'found_in_release' => $this->faker->text(10), | ||
'fixed_in_release' => $this->faker->text(10), | ||
'source' => $this->faker->text(10), | ||
'product_category' => $this->faker->text(10), | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\Call; | ||
|
||
class CallFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = Call::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name(), | ||
'description' => $this->faker->text(500), | ||
'duration_hours' => $this->faker->numberBetween(1, 24), | ||
'duration_minutes' => $this->faker->numberBetween(1, 60), | ||
'date_start' => $this->faker->dateTimeBetween('-3months', '-2months'), | ||
'date_end' => $this->faker->dateTimeBetween('-2months', '-1month'), | ||
'parent_type' => null, | ||
'parent_id' => null, | ||
'status' => $this->faker->randomElement([ | ||
'ACTIVE', | ||
'INACTIVE', | ||
'PLANNED', | ||
]), | ||
'direction' => $this->faker->randomElement([ | ||
'INCOMING', | ||
'OUTGOING', | ||
]), | ||
'reminder_time' => $this->faker->randomNumber(), | ||
'email_reminder_time' => $this->faker->randomNumber(), | ||
'email_reminder_sent' => $this->faker->boolean(), | ||
'outlook_id' => null, | ||
'repeat_type' => null, | ||
'repeat_interval' => null, | ||
'repeat_dow' => null, | ||
'repeat_until' => null, | ||
'repeat_count' => null, | ||
'repeat_parent_id' => null, | ||
'recurring_source' => null, | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace Joy\VoyagerCrm\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Joy\VoyagerCrm\Models\Currency; | ||
|
||
class CurrencyFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = Currency::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
$currencyCode = $this->faker->unique()->currencyCode(); | ||
|
||
return [ | ||
'name' => $this->faker->name(), | ||
'symbol' => $currencyCode, | ||
'iso4217' => $currencyCode, | ||
'conversion_rate' => $this->faker->randomFloat(4, 20, 200), | ||
'status' => $this->faker->randomElement([ | ||
'ACTIVE', | ||
'INACTIVE', | ||
]), | ||
'created_at' => $this->faker->dateTime(), | ||
'updated_at' => $this->faker->dateTime(), | ||
// 'deleted_at' => $this->faker->dateTime(), | ||
]; | ||
} | ||
} |
Oops, something went wrong.