Skip to content

Contact Model

Bridges FluentCommunity users to FluentCRM contact records when FluentCRM is installed.

Table

  • Table: fc_subscribers
  • Primary key: id
  • Schema ownership: FluentCRM table. It is referenced by FluentCommunity when FluentCRM is installed.
  • Extends: Model

Attributes

ColumnTypeNullableDefaultDescription
hashstringYesHash stored for this record.
prefixstringYesPrefix stored for this record.
first_namestringYesFirst Name stored for this record.
last_namestringYesLast Name stored for this record.
user_idintegerYesWordPress user ID associated with the row.
company_idintegerYesCompany ID stored for this record.
emailstringYesEmail stored for this record.
statusstringYesLifecycle or moderation status.
contact_typestringYesContact Type stored for this record.
address_line_1stringYesAddress Line 1 stored for this record.
address_line_2stringYesAddress Line 2 stored for this record.
postal_codestringYesPostal Code stored for this record.
citystringYesCity stored for this record.
statestringYesState stored for this record.
countryintegerYesCountry stored for this record.
phonestringYesPhone stored for this record.
timezonestringYesTimezone stored for this record.
date_of_birthdatetimeYesDate Of Birth stored for this record.
sourcestringYesSource stored for this record.
life_time_valuestringYesLife Time Value stored for this record.
last_activitystringYesTimestamp of the last tracked user activity.
total_pointsstringYesAccumulated profile points used for rankings and badges.
latitudestringYesLatitude stored for this record.
longitudestringYesLongitude stored for this record.
ipstringYesIp stored for this record.
created_atdatetimeYesCreation timestamp maintained by the ORM.
updated_atdatetimeYesUpdate timestamp maintained by the ORM.
avatarstringYesAvatar URL for the profile or user.

Relationships

MethodTypeTargetNotes
No relationships are declared on this model.

Scopes

ScopeParametersPurpose
No custom scopes are declared on this model.

Key Methods

MethodDescription
No additional public methods are documented for this model.

Usage Examples

php
use FluentCommunity\App\Models\Contact;

$records = Contact::query()
    
    ->limit(10)
    ->get();

$first = Contact::query()->first();

FluentCommunity developer documentation