| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCommunity\App\Models; |
| 4 |
|
| 5 |
|
| 6 |
/** |
| 7 |
* FluentCRM Contact Model |
| 8 |
* |
| 9 |
* Database Model |
| 10 |
* |
| 11 |
* @package FluentCommunity\App\Models |
| 12 |
* |
| 13 |
* @version 1.1.0 |
| 14 |
*/ |
| 15 |
class Contact extends Model |
| 16 |
{ |
| 17 |
protected $table = 'fc_subscribers'; |
| 18 |
|
| 19 |
protected $guarded = ['id']; |
| 20 |
|
| 21 |
protected $fillable = [ |
| 22 |
'hash', |
| 23 |
'prefix', |
| 24 |
'first_name', |
| 25 |
'last_name', |
| 26 |
'user_id', |
| 27 |
'company_id', |
| 28 |
'email', |
| 29 |
'status', // pending / subscribed / bounced / unsubscribed; Default: subscriber |
| 30 |
'contact_type', // lead / customer |
| 31 |
'address_line_1', |
| 32 |
'address_line_2', |
| 33 |
'postal_code', |
| 34 |
'city', |
| 35 |
'state', |
| 36 |
'country', |
| 37 |
'phone', |
| 38 |
'timezone', |
| 39 |
'date_of_birth', |
| 40 |
'source', |
| 41 |
'life_time_value', |
| 42 |
'last_activity', |
| 43 |
'total_points', |
| 44 |
'latitude', |
| 45 |
'longitude', |
| 46 |
'ip', |
| 47 |
'created_at', |
| 48 |
'updated_at', |
| 49 |
'avatar' |
| 50 |
]; |
| 51 |
|
| 52 |
} |
| 53 |
|