diff --git a/app/Classes/ValueObjects/Constants/ApprovalStatus.php b/app/Classes/ValueObjects/Constants/ApprovalStatus.php new file mode 100644 index 00000000..fcc5e568 --- /dev/null +++ b/app/Classes/ValueObjects/Constants/ApprovalStatus.php @@ -0,0 +1,22 @@ + 'Pending Verification', + 1 => 'Active', + 2 => 'Suspended', + 3 => 'Rejected' + ]; + +} diff --git a/database/migrations/2020_10_22_071102_create_companies_table.php b/database/migrations/2020_10_22_071102_create_companies_table.php index 191be926..de5f45ab 100644 --- a/database/migrations/2020_10_22_071102_create_companies_table.php +++ b/database/migrations/2020_10_22_071102_create_companies_table.php @@ -1,8 +1,10 @@ string('name'); $table->string('reference'); $table->integer('type'); - $table->integer('business_type')->default(1); + $table->integer('business_type')->default(BusinessType::IMPORTER); + $table->integer('status')->default(ApprovalStatus::ACTIVE); $table->timestamps(); $table->softDeletes(); });