| 1 | <?php |
||
| 7 | class PointType extends Base |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * The attributes that are mass assignable. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $fillable = [ |
||
| 16 | 'name', |
||
| 17 | 'cpf', |
||
| 18 | 'email', |
||
| 19 | 'role_id' |
||
| 20 | ]; |
||
| 21 | |||
| 22 | protected $mappingProperties = array( |
||
| 23 | /** |
||
| 24 | * User Info |
||
| 25 | */ |
||
| 26 | 'name' => [ |
||
| 27 | 'type' => 'string', |
||
| 28 | "analyzer" => "standard", |
||
| 29 | ], |
||
| 30 | 'cpf' => [ |
||
| 31 | 'type' => 'string', |
||
| 32 | "analyzer" => "standard", |
||
| 33 | ], |
||
| 34 | 'email' => [ |
||
| 35 | 'type' => 'string', |
||
| 36 | "analyzer" => "standard", |
||
| 37 | ], |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Grupo de Usuário: |
||
| 41 | * |
||
| 42 | * 3 -> Usuário de Produtora |
||
| 43 | * Default: 3 |
||
| 44 | */ |
||
| 45 | 'role_id' => [ |
||
| 46 | 'type' => 'string', |
||
| 47 | "analyzer" => "standard", |
||
| 48 | ], |
||
| 49 | ); |
||
| 50 | |||
| 51 | public function points() |
||
| 55 | } |
||
| 56 |