36 lines
1019 B
V
36 lines
1019 B
V
module crm
|
|
|
|
import base
|
|
import freeflowuniverse.herolib.data.ourtime
|
|
|
|
// Contact represents an individual person in the CRM system.
|
|
pub struct Contact {
|
|
base.Base // Provides id u32, creation_time, mod_time
|
|
pub mut:
|
|
first_name string
|
|
last_name string
|
|
title string // e.g., Mr., Ms., Dr.
|
|
email string
|
|
phone string
|
|
mobile string
|
|
job_title string
|
|
department string // Optional
|
|
// company_id u32 // Optional: If directly linked to a primary company/account
|
|
// reports_to_id u32 // Optional: Contact ID of their manager
|
|
|
|
// Address fields
|
|
address_street string
|
|
address_city string
|
|
address_state string
|
|
address_postal_code string
|
|
address_country string
|
|
|
|
description string // General notes about the contact
|
|
do_not_call bool
|
|
email_opt_out bool
|
|
|
|
// Social media profiles could be added here too
|
|
// linkedin_profile string
|
|
// twitter_profile string
|
|
}
|