@@ 7-52 (lines=46) @@ | ||
4 | ||
5 | use Pedreiro\Models\Base; |
|
6 | ||
7 | class BusinesstionRelationship extends Base |
|
8 | { |
|
9 | ||
10 | protected $organizationPerspective = false; |
|
11 | ||
12 | protected $table = 'business_businesstion_relationships'; |
|
13 | ||
14 | /** |
|
15 | * The attributes that are mass assignable. |
|
16 | * |
|
17 | * @var array |
|
18 | */ |
|
19 | protected $fillable = [ |
|
20 | 'customer_id', |
|
21 | 'credit_card_id', |
|
22 | 'user_id', |
|
23 | ]; |
|
24 | ||
25 | ||
26 | protected $mappingProperties = array( |
|
27 | ||
28 | 'customer_id' => [ |
|
29 | 'type' => 'integer', |
|
30 | "analyzer" => "standard", |
|
31 | ], |
|
32 | 'credit_card_id' => [ |
|
33 | 'type' => 'integer', |
|
34 | "analyzer" => "standard", |
|
35 | ], |
|
36 | 'user_id' => [ |
|
37 | 'type' => 'integer', |
|
38 | "analyzer" => "standard", |
|
39 | ], |
|
40 | 'score' => [ |
|
41 | 'type' => 'float', |
|
42 | "analyzer" => "standard", |
|
43 | ], |
|
44 | ); |
|
45 | ||
46 | ||
47 | public function user() |
|
48 | { |
|
49 | return $this->belongsTo(\Illuminate\Support\Facades\Config::get('sitec.core.models.user', \App\Models\User::class), 'user_id', 'id'); |
|
50 | } |
|
51 | ||
52 | } |
@@ 11-57 (lines=47) @@ | ||
8 | use Pedreiro\Models\Base; |
|
9 | use Telefonica\Models\Actors\Person; |
|
10 | ||
11 | class Collaborator extends Person |
|
12 | { |
|
13 | ||
14 | protected $organizationPerspective = true; |
|
15 | ||
16 | protected $table = 'business_collaborators'; |
|
17 | ||
18 | /** |
|
19 | * The attributes that are mass assignable. |
|
20 | * |
|
21 | * @var array |
|
22 | */ |
|
23 | protected $fillable = [ |
|
24 | 'user_id', |
|
25 | 'person_id', |
|
26 | 'business_id', |
|
27 | 'business_collaborator_type_id', |
|
28 | ]; |
|
29 | ||
30 | ||
31 | protected $mappingProperties = array( |
|
32 | ||
33 | 'customer_id' => [ |
|
34 | 'type' => 'integer', |
|
35 | "analyzer" => "standard", |
|
36 | ], |
|
37 | 'credit_card_id' => [ |
|
38 | 'type' => 'integer', |
|
39 | "analyzer" => "standard", |
|
40 | ], |
|
41 | 'user_id' => [ |
|
42 | 'type' => 'integer', |
|
43 | "analyzer" => "standard", |
|
44 | ], |
|
45 | 'score' => [ |
|
46 | 'type' => 'float', |
|
47 | "analyzer" => "standard", |
|
48 | ], |
|
49 | ); |
|
50 | ||
51 | ||
52 | public function user() |
|
53 | { |
|
54 | return $this->belongsTo(\Illuminate\Support\Facades\Config::get('sitec.core.models.user', \App\Models\User::class), 'user_id', 'id'); |
|
55 | } |
|
56 | ||
57 | } |
@@ 7-53 (lines=47) @@ | ||
4 | ||
5 | use Pedreiro\Models\Base; |
|
6 | ||
7 | class Product extends Base |
|
8 | { |
|
9 | ||
10 | protected $organizationPerspective = true; |
|
11 | ||
12 | protected $table = 'business_products'; |
|
13 | ||
14 | /** |
|
15 | * The attributes that are mass assignable. |
|
16 | * |
|
17 | * @var array |
|
18 | */ |
|
19 | protected $fillable = [ |
|
20 | 'user_id', |
|
21 | 'customer_id', |
|
22 | 'credit_card_id', |
|
23 | 'user_id', |
|
24 | ]; |
|
25 | ||
26 | ||
27 | protected $mappingProperties = array( |
|
28 | ||
29 | 'customer_id' => [ |
|
30 | 'type' => 'integer', |
|
31 | "analyzer" => "standard", |
|
32 | ], |
|
33 | 'credit_card_id' => [ |
|
34 | 'type' => 'integer', |
|
35 | "analyzer" => "standard", |
|
36 | ], |
|
37 | 'user_id' => [ |
|
38 | 'type' => 'integer', |
|
39 | "analyzer" => "standard", |
|
40 | ], |
|
41 | 'score' => [ |
|
42 | 'type' => 'float', |
|
43 | "analyzer" => "standard", |
|
44 | ], |
|
45 | ); |
|
46 | ||
47 | ||
48 | public function user() |
|
49 | { |
|
50 | return $this->belongsTo(\Illuminate\Support\Facades\Config::get('sitec.core.models.user', \App\Models\User::class), 'user_id', 'id'); |
|
51 | } |
|
52 | ||
53 | } |
@@ 7-52 (lines=46) @@ | ||
4 | ||
5 | use Pedreiro\Models\Base; |
|
6 | ||
7 | class Dominio extends Base |
|
8 | { |
|
9 | ||
10 | protected $organizationPerspective = false; |
|
11 | ||
12 | protected $table = 'identity_dominios'; |
|
13 | ||
14 | /** |
|
15 | * The attributes that are mass assignable. |
|
16 | * |
|
17 | * @var array |
|
18 | */ |
|
19 | protected $fillable = [ |
|
20 | 'customer_id', |
|
21 | 'credit_card_id', |
|
22 | 'user_id', |
|
23 | ]; |
|
24 | ||
25 | ||
26 | protected $mappingProperties = array( |
|
27 | ||
28 | 'customer_id' => [ |
|
29 | 'type' => 'integer', |
|
30 | "analyzer" => "standard", |
|
31 | ], |
|
32 | 'credit_card_id' => [ |
|
33 | 'type' => 'integer', |
|
34 | "analyzer" => "standard", |
|
35 | ], |
|
36 | 'user_id' => [ |
|
37 | 'type' => 'integer', |
|
38 | "analyzer" => "standard", |
|
39 | ], |
|
40 | 'docker_compose_file' => [ |
|
41 | 'type' => 'string', |
|
42 | "analyzer" => "standard", |
|
43 | ], |
|
44 | ); |
|
45 | ||
46 | ||
47 | public function user() |
|
48 | { |
|
49 | return $this->belongsTo(\Illuminate\Support\Facades\Config::get('sitec.core.models.user', \App\Models\User::class), 'user_id', 'id'); |
|
50 | } |
|
51 | ||
52 | } |