Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
UserFieldInjection
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3namespace App\Http\Models;
4
5/**
6 * UserFieldInjection model - stores per-user field injection customizations.
7 *
8 * Users can override or extend the global RemoteConfig field_injection rules.
9 * Each user has at most one document containing their custom domain entries
10 * and a list of global entries they want excluded.
11 *
12 * @property string $_id
13 * @property string $user_id The owning user ID (unique index)
14 * @property array|null $field_injection User's custom domain entries (additions/overrides)
15 * @property array|null $removed_entries Global entries the user wants excluded [{domain, selector}]
16 * @property \Carbon\Carbon|null $created_at
17 * @property \Carbon\Carbon|null $updated_at
18 */
19class UserFieldInjection extends Moloquent
20{
21    /**
22     * The collection name.
23     *
24     * @var string
25     */
26    protected $table = 'user_field_injections';
27
28    /**
29     * The attributes that are mass assignable.
30     *
31     * @var array<string>
32     */
33    protected $fillable = [
34        'user_id',
35        'field_injection',
36        'removed_entries',
37    ];
38
39    /**
40     * The attributes that should be cast.
41     *
42     * @var array<string, string>
43     */
44    protected $casts = [
45        'field_injection' => 'array',
46        'removed_entries' => 'array',
47    ];
48}