mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
contract generate
This commit is contained in:
@@ -19,9 +19,12 @@ class CreateContractObligationsTable extends Migration
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->bigInteger('contract_id')->unsigned()->nullable();
|
||||
$table->foreign('contract_id')->references('id')->on('contracts')->onDelete('cascade');
|
||||
$table->bigInteger('contract_template_obligation_id')->unsigned()->nullable();
|
||||
$table->foreign('contract_template_obligation_id', 'co_cto_id')->references('id')->on('contract_template_obligations')->onDelete('cascade');
|
||||
$table->bigInteger('contract_entity_id')->unsigned()->nullable();
|
||||
$table->foreign('contract_entity_id')->references('id')->on('contract_entities')->onDelete('cascade');
|
||||
$table->string('name')->nullable();
|
||||
$table->float('sequence', 4, 2)->nullable();
|
||||
$table->string('reference')->nullable();
|
||||
$table->json('content')->nullable();
|
||||
$table->integer('must_complete')->nullable()->default(1);
|
||||
@@ -29,6 +32,7 @@ class CreateContractObligationsTable extends Migration
|
||||
$table->integer('complete_status')->nullable()->default(1);
|
||||
$table->integer('accept_status')->nullable()->default(1);
|
||||
$table->integer('type')->nullable()->default(1);
|
||||
$table->json('in_time_contract_obligation_template');
|
||||
$table->integer('status')->nullable()->default(1);
|
||||
$table->timestamp('completed_at')->nullable();
|
||||
$table->timestamp('failed_at')->nullable();
|
||||
|
||||
@@ -21,6 +21,7 @@ class SodaVendorContractObligationsTableSeeder extends Seeder
|
||||
'id' => 1,
|
||||
'user_id' => 2,
|
||||
'contract_id' => 1,
|
||||
'contract_template_obligation_id' => 1,
|
||||
'contract_entity_id' => 1,
|
||||
'name' => 'user insert coin and select soda at vendor machine',
|
||||
'reference' => null,
|
||||
@@ -30,6 +31,7 @@ class SodaVendorContractObligationsTableSeeder extends Seeder
|
||||
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
||||
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
||||
'type' => config('constants.contract_obligation.type.money'),
|
||||
'in_time_contract_obligation_template' => json_encode([]),
|
||||
'status' => 1,
|
||||
'completed_at' => null,
|
||||
'failed_at' => null,
|
||||
@@ -42,6 +44,7 @@ class SodaVendorContractObligationsTableSeeder extends Seeder
|
||||
'id' => 2,
|
||||
'user_id' => 2,
|
||||
'contract_id' => 1,
|
||||
'contract_template_obligation_id' => 2,
|
||||
'contract_entity_id' => 2,
|
||||
'name' => 'vendor machine drop selected soda to user',
|
||||
'reference' => null,
|
||||
@@ -51,6 +54,7 @@ class SodaVendorContractObligationsTableSeeder extends Seeder
|
||||
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
||||
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
||||
'type' => config('constants.contract_obligation.type.offer_service'),
|
||||
'in_time_contract_obligation_template' => json_encode([]),
|
||||
'status' => 1,
|
||||
'completed_at' => null,
|
||||
'failed_at' => null,
|
||||
@@ -63,6 +67,7 @@ class SodaVendorContractObligationsTableSeeder extends Seeder
|
||||
'id' => 3,
|
||||
'user_id' => 2,
|
||||
'contract_id' => 1,
|
||||
'contract_template_obligation_id' => 3,
|
||||
'contract_entity_id' => 2,
|
||||
'name' => 'user pickup the soda',
|
||||
'reference' => null,
|
||||
@@ -72,6 +77,7 @@ class SodaVendorContractObligationsTableSeeder extends Seeder
|
||||
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
||||
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
||||
'type' => config('constants.contract_obligation.type.offer_service'),
|
||||
'in_time_contract_obligation_template' => json_encode([]),
|
||||
'status' => 1,
|
||||
'completed_at' => Carbon::now(),
|
||||
'failed_at' => null,
|
||||
|
||||
Reference in New Issue
Block a user