[
  {
    "apiName": "CampaignMember",
    "keyPrefix": "00v",
    "label": "Campaign Member",
    "pluralLabel": "Campaign Members",
    "tableType": "standard_object",
    "category": "crm",
    "sharingModel": "ControlledByParent",
    "description": "Standard Salesforce CampaignMember object",
    "fields": [
      {
        "apiName": "Name",
        "label": "Name",
        "type": "formula",
        "returnType": "string",
        "formulaMode": "active",
        "formula": "IF(ISBLANK(ContactId), Lead.Name, Contact.Name)",
        "isNameField": true
      },
      {
        "apiName": "FirstName",
        "label": "First Name",
        "type": "formula",
        "returnType": "string",
        "formulaMode": "active",
        "formula": "IF(ISBLANK(ContactId), Lead.FirstName, Contact.FirstName)"
      },
      {
        "apiName": "LastName",
        "label": "Last Name",
        "type": "formula",
        "returnType": "string",
        "formulaMode": "active",
        "formula": "IF(ISBLANK(ContactId), Lead.LastName, Contact.LastName)"
      },
      {
        "apiName": "Email",
        "label": "Email",
        "type": "formula",
        "returnType": "email",
        "formulaMode": "active",
        "formula": "IF(ISBLANK(ContactId), Lead.Email, Contact.Email)"
      },
      {
        "apiName": "Phone",
        "label": "Phone",
        "type": "formula",
        "returnType": "phone",
        "formulaMode": "active",
        "formula": "IF(ISBLANK(ContactId), BLANKVALUE(Lead.Phone, Lead.MobilePhone), BLANKVALUE(Contact.Phone, Contact.MobilePhone))"
      },
      {
        "apiName": "CompanyOrAccount",
        "label": "Company (Account)",
        "type": "formula",
        "returnType": "string",
        "formulaMode": "active",
        "formula": "IF(ISBLANK(ContactId), Lead.Company, Contact.Account.Name)"
      },
      {
        "apiName": "Title",
        "label": "Title",
        "type": "string",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Street",
        "label": "Street",
        "type": "string",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "City",
        "label": "City",
        "type": "string",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "State",
        "label": "State/Province",
        "type": "string",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "PostalCode",
        "label": "Zip/Postal Code",
        "type": "string",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Country",
        "label": "Country",
        "type": "string",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Fax",
        "label": "Fax",
        "type": "phone",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "MobilePhone",
        "label": "Mobile",
        "type": "phone",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "DoNotCall",
        "label": "Do Not Call",
        "type": "boolean",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "HasOptedOutOfEmail",
        "label": "Email Opt Out",
        "type": "boolean",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "CampaignId",
        "label": "Campaign",
        "type": "reference",
        "required": true,
        "referenceTo": [
          "Campaign"
        ],
        "relationshipName": "Campaign",
        "childRelationshipName": "CampaignMembers"
      },
      {
        "apiName": "LeadId",
        "label": "Lead",
        "type": "reference",
        "referenceTo": [
          "Lead"
        ],
        "relationshipName": "Lead",
        "childRelationshipName": "CampaignMembers"
      },
      {
        "apiName": "ContactId",
        "label": "Contact",
        "type": "reference",
        "referenceTo": [
          "Contact"
        ],
        "relationshipName": "Contact",
        "childRelationshipName": "CampaignMembers"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "type": "picklist",
        "validator": "runtime_scoped_picklist",
        "controllingField": "CampaignId",
        "referenceTo": [
          "CampaignMemberStatus"
        ],
        "options": [
          {
            "value": "Sent",
            "label": "Sent"
          },
          {
            "value": "Responded",
            "label": "Responded"
          }
        ]
      },
      {
        "apiName": "HasResponded",
        "label": "Responded",
        "type": "boolean",
        "returnType": "boolean",
        "formulaMode": "active",
        "projection": {
          "kind": "lookupValue",
          "targetObject": "CampaignMemberStatus",
          "selectField": "HasResponded",
          "matches": [
            {
              "targetField": "CampaignId",
              "sourceField": "CampaignId"
            },
            {
              "targetField": "Label",
              "sourceField": "Status"
            }
          ],
          "excludeDeleted": true
        }
      },
      {
        "apiName": "FirstRespondedDate",
        "label": "First Responded Date",
        "type": "date"
      },
      {
        "apiName": "Campaign_Name__c",
        "type": "formula",
        "label": "Campaign Name",
        "formula": "Campaign.Name",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Cloud_Registration_Source__c",
        "type": "formula",
        "label": "Cloud Registration Source",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\nTEXT( Lead.source__c ),\nTEXT( Contact.Account.Cloud_Registration_Source__c )\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Account_Status__c",
        "type": "formula",
        "label": "Tenant Status",
        "formula": "IF(\nISBLANK(ContactId),\nTEXT( Lead.Account_Status__c ),\nTEXT( Contact.Account.Account_Status__c )\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "agreement_time__c",
        "type": "formula",
        "label": "Online CSA Accepted Time",
        "formula": "IF(\nISBLANK(ContactId),\nLead.agreement_time__c,\nContact.Account.agreement_time__c\n)",
        "returnType": "datetime",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Billing_Email__c",
        "type": "formula",
        "label": "Tenant Billing Admin Email",
        "formula": "IF(\nISBLANK(ContactId),\nLead.Billing_Email__c,\nContact.Account.billing_email__c\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Connection_Type__c",
        "type": "formula",
        "label": "Connection Type",
        "formula": "IF(\nISBLANK(ContactId),\nLead.Connection_Type__c,\nContact.Account.Connection_Type__c\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "created_at__c",
        "type": "formula",
        "label": "Tenant Created Time",
        "formula": "IF(\nISBLANK(ContactId),\nLead.created_at__c,\nContact.Account.created_at__c\n)",
        "returnType": "datetime",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "IP_Address__c",
        "type": "formula",
        "label": "IP Address",
        "formula": "IF(\nISBLANK(ContactId),\nLead.IP_Address__c,\nContact.Account.ip_address__c\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Count__c",
        "type": "formula",
        "label": "Count",
        "formula": "1",
        "returnType": "double",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Department__c",
        "type": "formula",
        "label": "Department",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\n Lead.Department__c ,\n Contact.Department \n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "First_Conversion__c",
        "type": "formula",
        "label": "First Conversion",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\n Lead.First_Conversion__c  , \n Contact.First_Conversion__c \n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Hubspot_Score__c",
        "type": "formula",
        "label": "Hubspot Score",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\n( Lead.Hubspot_Score__c ) , /* No ContactId: it's a Lead, so get Lead score */\n( Contact.Hubspot_Score__c ) /* ContactId: it's a Contact, so get Contact score */\n)",
        "returnType": "double",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "IQM__c",
        "type": "formula",
        "label": "IQM",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\n Lead.IQM__c  , \n Contact.IQM__c \n)",
        "returnType": "boolean",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Internal_User__c",
        "type": "formula",
        "label": "Internal User",
        "formula": "Lead.Internal_User__c",
        "returnType": "boolean",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Job_Function_1__c",
        "type": "formula",
        "label": "Job Function",
        "formula": "IF(ISBLANK(ContactId), /* Check whether there's a ContactId value */\n Lead.Job_Function__c ,\n Contact.Job_Function__c \n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Job_Function__c",
        "type": "string",
        "label": "Job Function"
      },
      {
        "apiName": "Key_Message__c",
        "type": "richtextarea",
        "label": "Key Message"
      },
      {
        "apiName": "LeadSource",
        "type": "picklist",
        "label": "Lead Source",
        "options": [
          {
            "value": "Community",
            "label": "Community"
          },
          {
            "value": "Direct Traffic",
            "label": "Direct Traffic"
          },
          {
            "value": "Email",
            "label": "Email"
          },
          {
            "value": "List",
            "label": "List"
          },
          {
            "value": "Not Identified",
            "label": "Not Identified"
          },
          {
            "value": "Organic Search",
            "label": "Organic Search"
          },
          {
            "value": "Organic Social",
            "label": "Organic Social"
          },
          {
            "value": "Other",
            "label": "Other"
          },
          {
            "value": "Paid Advertising",
            "label": "Paid Advertising"
          },
          {
            "value": "Partner",
            "label": "Partner"
          },
          {
            "value": "Physical Event",
            "label": "Physical Event"
          },
          {
            "value": "Referral",
            "label": "Referral"
          },
          {
            "value": "Sales Outbound",
            "label": "Sales Outbound"
          },
          {
            "value": "Virtual Event",
            "label": "Virtual Event"
          },
          {
            "value": "Website Referral",
            "label": "Website Referral"
          }
        ]
      },
      {
        "apiName": "Lead_Source_Detail__c",
        "type": "formula",
        "label": "Lead Source Detail",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\nTEXT(  Lead.Lead_Source_Details__c  ),\nTEXT(  Contact.Lead_Source_Details__c  )\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Lead_Status__c",
        "type": "formula",
        "label": "Lead Status",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\nTEXT( Lead.Status ) , /* No ContactId: it's a Lead, so get Lead score */\nTEXT( Contact.Status__c ) /* ContactId: it's a Contact, so get Contact score */\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Lifecycle_Stage__c",
        "type": "formula",
        "label": "Lifecycle Stage",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\nCASE(TEXT(Lead.Lifecycle_Stage__c),\n  \"subscriber\", \"1. Suspect\",\n  \"lead\", \"2. Lead\",\n  \"marketingqualifiedlead\", \"3. MQL\",\n  \"salesqualifiedlead\", \"4. IQM\",\n  \"80610933\", \"5. Post IQM\",\n  \"opportunity\", \"6. Opportunity\",\n  \"customer\", \"7. Customer\",\n  \"68053680\", \"8. Disqualified\",\n  \"other\", \"Other\",\n  \"evangelist\", \"Evangelist\",\n  \"Error\"\n),\nCASE(TEXT(Contact.Lifecycle_Stage__c),\n  \"subscriber\", \"1. Suspect\",\n  \"lead\", \"2. Lead\",\n  \"marketingqualifiedlead\", \"3. MQL\",\n  \"salesqualifiedlead\", \"4. IQM\",\n  \"80610933\", \"5. Post IQM\",\n  \"opportunity\", \"6. Opportunity\",\n  \"customer\", \"7. Customer\",\n  \"68053680\", \"8. Disqualified\",\n  \"other\", \"Other\",\n  \"evangelist\", \"Evangelist\",\n  \"Error\"\n))",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "MQL_Reason__c",
        "type": "formula",
        "label": "MQL Reason",
        "formula": "IF(\n  ISBLANK(ContactId), /* Check whether there's a ContactId value */\n    TEXT( Lead.MQL_Reason__c ) ,      /* No ContactId: it's a Lead, so get Lead score */\n   TEXT( Contact.MQL_Reason__c )  /* ContactId: it's a Contact, so get Contact score */\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Most_Recent_Referrer_URL__c",
        "type": "textarea",
        "label": "Most Recent Referrer URL"
      },
      {
        "apiName": "Person_Source_Detail__c",
        "type": "picklist",
        "label": "Person Source Detail",
        "options": [
          {
            "value": "AdRoll",
            "label": "AdRoll"
          },
          {
            "value": "AWS",
            "label": "AWS"
          },
          {
            "value": "Baidu",
            "label": "Baidu"
          },
          {
            "value": "Bing",
            "label": "Bing"
          },
          {
            "value": "Community Ads",
            "label": "Community Ads"
          },
          {
            "value": "Community Content Syndication",
            "label": "Community Content Syndication"
          },
          {
            "value": "Conference",
            "label": "Conference"
          },
          {
            "value": "Customer Referral",
            "label": "Customer Referral"
          },
          {
            "value": "Daily.dev",
            "label": "Daily.dev"
          },
          {
            "value": "DB-Engines",
            "label": "DB-Engines"
          },
          {
            "value": "DB Weekly",
            "label": "DB Weekly"
          },
          {
            "value": "Devpost",
            "label": "Devpost"
          },
          {
            "value": "Direct mail",
            "label": "Direct mail"
          },
          {
            "value": "Docs",
            "label": "Docs"
          },
          {
            "value": "DuckDuckGo",
            "label": "DuckDuckGo"
          },
          {
            "value": "DZone",
            "label": "DZone"
          },
          {
            "value": "e27",
            "label": "e27"
          },
          {
            "value": "Email Blast",
            "label": "Email Blast"
          },
          {
            "value": "Email Legacy",
            "label": "Email Legacy"
          },
          {
            "value": "Email Newsletter",
            "label": "Email Newsletter"
          },
          {
            "value": "Email Nurture",
            "label": "Email Nurture"
          },
          {
            "value": "Email Sponsored",
            "label": "Email Sponsored"
          },
          {
            "value": "Employee Referral",
            "label": "Employee Referral"
          },
          {
            "value": "Eventbrite",
            "label": "Eventbrite"
          },
          {
            "value": "Facebook",
            "label": "Facebook"
          },
          {
            "value": "Github",
            "label": "Github"
          },
          {
            "value": "Google",
            "label": "Google"
          },
          {
            "value": "Google - Display",
            "label": "Google - Display"
          },
          {
            "value": "Google - Performance Max",
            "label": "Google - Performance Max"
          },
          {
            "value": "Google - Search",
            "label": "Google - Search"
          },
          {
            "value": "Google - YouTube",
            "label": "Google - YouTube"
          },
          {
            "value": "Hacker News",
            "label": "Hacker News"
          },
          {
            "value": "Influencer",
            "label": "Influencer"
          },
          {
            "value": "Instagram",
            "label": "Instagram"
          },
          {
            "value": "Intentisfy",
            "label": "Intentisfy"
          },
          {
            "value": "JavaScript Weekly",
            "label": "JavaScript Weekly"
          },
          {
            "value": "Legacy",
            "label": "Legacy"
          },
          {
            "value": "LinkedIn",
            "label": "LinkedIn"
          },
          {
            "value": "Linkedin - Display",
            "label": "Linkedin - Display"
          },
          {
            "value": "Linkedin - InMail",
            "label": "Linkedin - InMail"
          },
          {
            "value": "LinkedIn Sales Navigator",
            "label": "LinkedIn Sales Navigator"
          },
          {
            "value": "Lu.ma",
            "label": "Lu.ma"
          },
          {
            "value": "MariaDB Users",
            "label": "MariaDB Users"
          },
          {
            "value": "Media Site Ads",
            "label": "Media Site Ads"
          },
          {
            "value": "Media Site Content Syndication",
            "label": "Media Site Content Syndication"
          },
          {
            "value": "Medium",
            "label": "Medium"
          },
          {
            "value": "Meetup",
            "label": "Meetup"
          },
          {
            "value": "Meetup.com",
            "label": "Meetup.com"
          },
          {
            "value": "Membership Referral",
            "label": "Membership Referral"
          },
          {
            "value": "Microsoft",
            "label": "Microsoft"
          },
          {
            "value": "OSS Insight",
            "label": "OSS Insight"
          },
          {
            "value": "Other",
            "label": "Other"
          },
          {
            "value": "OTT Ads",
            "label": "OTT Ads"
          },
          {
            "value": "Outbound call",
            "label": "Outbound call"
          },
          {
            "value": "Owned Event",
            "label": "Owned Event"
          },
          {
            "value": "Partner Event",
            "label": "Partner Event"
          },
          {
            "value": "PE Training",
            "label": "PE Training"
          },
          {
            "value": "PingCAP University",
            "label": "PingCAP University"
          },
          {
            "value": "PingCAP website-CN",
            "label": "PingCAP website-CN"
          },
          {
            "value": "PingCAP website-EN",
            "label": "PingCAP website-EN"
          },
          {
            "value": "PingCAP website-JP",
            "label": "PingCAP website-JP"
          },
          {
            "value": "Press Release",
            "label": "Press Release"
          },
          {
            "value": "Print Ads",
            "label": "Print Ads"
          },
          {
            "value": "Product Review Site Ads",
            "label": "Product Review Site Ads"
          },
          {
            "value": "Product Review Site Content Syndication",
            "label": "Product Review Site Content Syndication"
          },
          {
            "value": "Prospect Referral",
            "label": "Prospect Referral"
          },
          {
            "value": "Reddit",
            "label": "Reddit"
          },
          {
            "value": "ReoDev",
            "label": "ReoDev"
          },
          {
            "value": "Sales Attended Event",
            "label": "Sales Attended Event"
          },
          {
            "value": "Sales Intel",
            "label": "Sales Intel"
          },
          {
            "value": "Sales Sourced",
            "label": "Sales Sourced"
          },
          {
            "value": "SCRM",
            "label": "SCRM"
          },
          {
            "value": "SDR Sourced",
            "label": "SDR Sourced"
          },
          {
            "value": "Seminar",
            "label": "Seminar"
          },
          {
            "value": "Slack",
            "label": "Slack"
          },
          {
            "value": "Sponsored Event",
            "label": "Sponsored Event"
          },
          {
            "value": "Stack Overflow",
            "label": "Stack Overflow"
          },
          {
            "value": "Tech in Asia",
            "label": "Tech in Asia"
          },
          {
            "value": "The Edge",
            "label": "The Edge"
          },
          {
            "value": "TiDB Cloud website",
            "label": "TiDB Cloud website"
          },
          {
            "value": "TiDB Community",
            "label": "TiDB Community"
          },
          {
            "value": "Tradeshow",
            "label": "Tradeshow"
          },
          {
            "value": "TT Priority Engine",
            "label": "TT Priority Engine"
          },
          {
            "value": "Twitter",
            "label": "Twitter"
          },
          {
            "value": "Unknown",
            "label": "Unknown"
          },
          {
            "value": "Webinar - External / Co-branded",
            "label": "Webinar - External / Co-branded"
          },
          {
            "value": "Webinar - PingCAP",
            "label": "Webinar - PingCAP"
          },
          {
            "value": "WeChat",
            "label": "WeChat"
          },
          {
            "value": "Yahoo",
            "label": "Yahoo"
          },
          {
            "value": "YouTube",
            "label": "YouTube"
          },
          {
            "value": "YouTube - Display",
            "label": "YouTube - Display"
          },
          {
            "value": "ZoomInfo",
            "label": "ZoomInfo"
          },
          {
            "value": "ZoomInfo - MarketingOS",
            "label": "ZoomInfo - MarketingOS"
          }
        ]
      },
      {
        "apiName": "Person_Source__c",
        "type": "picklist",
        "label": "Person Source",
        "options": [
          {
            "value": "Community",
            "label": "Community"
          },
          {
            "value": "Direct Traffic",
            "label": "Direct Traffic"
          },
          {
            "value": "Email",
            "label": "Email"
          },
          {
            "value": "List",
            "label": "List"
          },
          {
            "value": "Not Identified",
            "label": "Not Identified"
          },
          {
            "value": "Organic Search",
            "label": "Organic Search"
          },
          {
            "value": "Organic Social",
            "label": "Organic Social"
          },
          {
            "value": "Other",
            "label": "Other"
          },
          {
            "value": "Paid Advertising",
            "label": "Paid Advertising"
          },
          {
            "value": "Partner",
            "label": "Partner"
          },
          {
            "value": "Physical Event",
            "label": "Physical Event"
          },
          {
            "value": "Referral",
            "label": "Referral"
          },
          {
            "value": "Sales Outbound",
            "label": "Sales Outbound"
          },
          {
            "value": "Virtual Event",
            "label": "Virtual Event"
          },
          {
            "value": "Website Referral",
            "label": "Website Referral"
          },
          {
            "value": "Partner Referral - Others",
            "label": "Partner Referral - Others"
          },
          {
            "value": "Product Review Site",
            "label": "Product Review Site"
          },
          {
            "value": "Website Traffic",
            "label": "Website Traffic"
          },
          {
            "value": "Website Conversion/Engagement",
            "label": "Website Conversion/Engagement"
          },
          {
            "value": "Cloud Sign-Up",
            "label": "Cloud Sign-Up"
          },
          {
            "value": "BD Team",
            "label": "BD Team"
          },
          {
            "value": "Webinar",
            "label": "Webinar"
          },
          {
            "value": "Cloud Generated",
            "label": "Cloud Generated"
          },
          {
            "value": "Press Release",
            "label": "Press Release"
          },
          {
            "value": "Outbound",
            "label": "Outbound"
          },
          {
            "value": "ZoomInfo",
            "label": "ZoomInfo"
          },
          {
            "value": "Marketing List",
            "label": "Marketing List"
          }
        ]
      },
      {
        "apiName": "Recent_Source_Detail__c",
        "type": "picklist",
        "label": "Recent Source Detail",
        "options": [
          {
            "value": "AdRoll",
            "label": "AdRoll"
          },
          {
            "value": "AWS",
            "label": "AWS"
          },
          {
            "value": "Baidu",
            "label": "Baidu"
          },
          {
            "value": "Bing",
            "label": "Bing"
          },
          {
            "value": "Community Ads",
            "label": "Community Ads"
          },
          {
            "value": "Community Content Syndication",
            "label": "Community Content Syndication"
          },
          {
            "value": "Conference",
            "label": "Conference"
          },
          {
            "value": "Customer Referral",
            "label": "Customer Referral"
          },
          {
            "value": "Daily.dev",
            "label": "Daily.dev"
          },
          {
            "value": "DB-Engines",
            "label": "DB-Engines"
          },
          {
            "value": "DB Weekly",
            "label": "DB Weekly"
          },
          {
            "value": "Devpost",
            "label": "Devpost"
          },
          {
            "value": "Direct mail",
            "label": "Direct mail"
          },
          {
            "value": "Docs",
            "label": "Docs"
          },
          {
            "value": "DuckDuckGo",
            "label": "DuckDuckGo"
          },
          {
            "value": "DZone",
            "label": "DZone"
          },
          {
            "value": "e27",
            "label": "e27"
          },
          {
            "value": "Email Blast",
            "label": "Email Blast"
          },
          {
            "value": "Email Legacy",
            "label": "Email Legacy"
          },
          {
            "value": "Email Newsletter",
            "label": "Email Newsletter"
          },
          {
            "value": "Email Nurture",
            "label": "Email Nurture"
          },
          {
            "value": "Email Sponsored",
            "label": "Email Sponsored"
          },
          {
            "value": "Employee Referral",
            "label": "Employee Referral"
          },
          {
            "value": "Eventbrite",
            "label": "Eventbrite"
          },
          {
            "value": "Facebook",
            "label": "Facebook"
          },
          {
            "value": "Github",
            "label": "Github"
          },
          {
            "value": "Google",
            "label": "Google"
          },
          {
            "value": "Google - Display",
            "label": "Google - Display"
          },
          {
            "value": "Google - Performance Max",
            "label": "Google - Performance Max"
          },
          {
            "value": "Google - Search",
            "label": "Google - Search"
          },
          {
            "value": "Google - YouTube",
            "label": "Google - YouTube"
          },
          {
            "value": "Hacker News",
            "label": "Hacker News"
          },
          {
            "value": "Influencer",
            "label": "Influencer"
          },
          {
            "value": "Instagram",
            "label": "Instagram"
          },
          {
            "value": "Intentisfy",
            "label": "Intentisfy"
          },
          {
            "value": "JavaScript Weekly",
            "label": "JavaScript Weekly"
          },
          {
            "value": "Legacy",
            "label": "Legacy"
          },
          {
            "value": "LinkedIn",
            "label": "LinkedIn"
          },
          {
            "value": "Linkedin - Display",
            "label": "Linkedin - Display"
          },
          {
            "value": "Linkedin - InMail",
            "label": "Linkedin - InMail"
          },
          {
            "value": "LinkedIn Sales Navigator",
            "label": "LinkedIn Sales Navigator"
          },
          {
            "value": "Lu.ma",
            "label": "Lu.ma"
          },
          {
            "value": "MariaDB Users",
            "label": "MariaDB Users"
          },
          {
            "value": "Media Site Ads",
            "label": "Media Site Ads"
          },
          {
            "value": "Media Site Content Syndication",
            "label": "Media Site Content Syndication"
          },
          {
            "value": "Medium",
            "label": "Medium"
          },
          {
            "value": "Meetup",
            "label": "Meetup"
          },
          {
            "value": "Meetup.com",
            "label": "Meetup.com"
          },
          {
            "value": "Membership Referral",
            "label": "Membership Referral"
          },
          {
            "value": "Microsoft",
            "label": "Microsoft"
          },
          {
            "value": "OSS Insight",
            "label": "OSS Insight"
          },
          {
            "value": "Other",
            "label": "Other"
          },
          {
            "value": "OTT Ads",
            "label": "OTT Ads"
          },
          {
            "value": "Outbound call",
            "label": "Outbound call"
          },
          {
            "value": "Owned Event",
            "label": "Owned Event"
          },
          {
            "value": "Partner Event",
            "label": "Partner Event"
          },
          {
            "value": "PE Training",
            "label": "PE Training"
          },
          {
            "value": "PingCAP University",
            "label": "PingCAP University"
          },
          {
            "value": "PingCAP website-CN",
            "label": "PingCAP website-CN"
          },
          {
            "value": "PingCAP website-EN",
            "label": "PingCAP website-EN"
          },
          {
            "value": "PingCAP website-JP",
            "label": "PingCAP website-JP"
          },
          {
            "value": "Press Release",
            "label": "Press Release"
          },
          {
            "value": "Print Ads",
            "label": "Print Ads"
          },
          {
            "value": "Product Review Site Ads",
            "label": "Product Review Site Ads"
          },
          {
            "value": "Product Review Site Content Syndication",
            "label": "Product Review Site Content Syndication"
          },
          {
            "value": "Prospect Referral",
            "label": "Prospect Referral"
          },
          {
            "value": "Reddit",
            "label": "Reddit"
          },
          {
            "value": "ReoDev",
            "label": "ReoDev"
          },
          {
            "value": "Sales Attended Event",
            "label": "Sales Attended Event"
          },
          {
            "value": "Sales Intel",
            "label": "Sales Intel"
          },
          {
            "value": "Sales Sourced",
            "label": "Sales Sourced"
          },
          {
            "value": "SCRM",
            "label": "SCRM"
          },
          {
            "value": "SDR Sourced",
            "label": "SDR Sourced"
          },
          {
            "value": "Seminar",
            "label": "Seminar"
          },
          {
            "value": "Slack",
            "label": "Slack"
          },
          {
            "value": "Sponsored Event",
            "label": "Sponsored Event"
          },
          {
            "value": "Stack Overflow",
            "label": "Stack Overflow"
          },
          {
            "value": "Tech in Asia",
            "label": "Tech in Asia"
          },
          {
            "value": "The Edge",
            "label": "The Edge"
          },
          {
            "value": "TiDB Cloud website",
            "label": "TiDB Cloud website"
          },
          {
            "value": "TiDB Community",
            "label": "TiDB Community"
          },
          {
            "value": "Tradeshow",
            "label": "Tradeshow"
          },
          {
            "value": "TT Priority Engine",
            "label": "TT Priority Engine"
          },
          {
            "value": "Twitter",
            "label": "Twitter"
          },
          {
            "value": "Unknown",
            "label": "Unknown"
          },
          {
            "value": "Webinar - External / Co-branded",
            "label": "Webinar - External / Co-branded"
          },
          {
            "value": "Webinar - PingCAP",
            "label": "Webinar - PingCAP"
          },
          {
            "value": "WeChat",
            "label": "WeChat"
          },
          {
            "value": "Yahoo",
            "label": "Yahoo"
          },
          {
            "value": "YouTube",
            "label": "YouTube"
          },
          {
            "value": "YouTube - Display",
            "label": "YouTube - Display"
          },
          {
            "value": "ZoomInfo",
            "label": "ZoomInfo"
          },
          {
            "value": "ZoomInfo - MarketingOS",
            "label": "ZoomInfo - MarketingOS"
          }
        ]
      },
      {
        "apiName": "Recent_Source__c",
        "type": "picklist",
        "label": "Recent Source",
        "options": [
          {
            "value": "Community",
            "label": "Community"
          },
          {
            "value": "Direct Traffic",
            "label": "Direct Traffic"
          },
          {
            "value": "Email",
            "label": "Email"
          },
          {
            "value": "List",
            "label": "List"
          },
          {
            "value": "Not Identified",
            "label": "Not Identified"
          },
          {
            "value": "Organic Search",
            "label": "Organic Search"
          },
          {
            "value": "Organic Social",
            "label": "Organic Social"
          },
          {
            "value": "Other",
            "label": "Other"
          },
          {
            "value": "Paid Advertising",
            "label": "Paid Advertising"
          },
          {
            "value": "Partner",
            "label": "Partner"
          },
          {
            "value": "Physical Event",
            "label": "Physical Event"
          },
          {
            "value": "Referral",
            "label": "Referral"
          },
          {
            "value": "Sales Outbound",
            "label": "Sales Outbound"
          },
          {
            "value": "Virtual Event",
            "label": "Virtual Event"
          },
          {
            "value": "Website Referral",
            "label": "Website Referral"
          }
        ]
      },
      {
        "apiName": "Region__c",
        "type": "formula",
        "label": "Region",
        "formula": "IF(\n  ISBLANK(ContactId), /* Check whether there's a ContactId value */\n    TEXT( Lead.Region__c ) ,      /* No ContactId: it's a Lead, so get Lead score */\n   TEXT( Contact.Account.Region__c )  /* ContactId: it's a Contact, so get Contact score */\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false,
        "length": 1300
      },
      {
        "apiName": "Salutation",
        "type": "picklist",
        "label": "Salutation",
        "options": [
          {
            "value": "Mr.",
            "label": "Mr."
          },
          {
            "value": "Ms.",
            "label": "Ms."
          },
          {
            "value": "Mrs.",
            "label": "Mrs."
          },
          {
            "value": "Dr.",
            "label": "Dr."
          },
          {
            "value": "Prof.",
            "label": "Prof."
          }
        ]
      },
      {
        "apiName": "State_Province__c",
        "type": "formula",
        "label": "State/Province*",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\n(  Lead.State_from_HubSpot__c  ),\n(  Contact.State_from_Hubspot__c  )\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Registration_Status__c",
        "type": "formula",
        "label": "Registration Status",
        "formula": "IF(\nISBLANK(ContactId),\nTEXT( Lead.Registration_Status__c ),\nTEXT( Contact.Registration_Status__c )\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Tied_Card_Time__c",
        "type": "formula",
        "label": "Credit Card Added Time",
        "formula": "IF(\nISBLANK(ContactId),\nLead.Tied_Card_Time__c,\nContact.Account.bind_credit_card_a__c\n)",
        "returnType": "datetime",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Time_Zone__c",
        "type": "formula",
        "label": "Time Zone",
        "formula": "IF(\nISBLANK(ContactId),\nTEXT( Lead.Time_Zone__c ),\nTEXT( Contact.Account.Time_zone__c )\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Tenant_Created_Time__c",
        "type": "formula",
        "label": "Tenant Created Time",
        "formula": "Lead.created_at__c",
        "returnType": "datetime",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Tidb_Cloud_User__c",
        "type": "formula",
        "label": "Tidb Cloud User",
        "formula": "IF(\nISBLANK(ContactId), /* Check whether there's a ContactId value */\n  Lead.TiDB_Cloud_User__c   , \n  Contact.TiDB_Cloud_User__c  \n)",
        "returnType": "boolean",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "remaining_points__c",
        "type": "formula",
        "label": "Remaining Credits",
        "formula": "IF(\nISBLANK(ContactId),\nLead.remaining_points__c,\nContact.Account.remaining_points__c\n)",
        "returnType": "currency",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "MQL_Priority__c",
        "type": "formula",
        "label": "MQL Priority",
        "formula": "IF(\nISBLANK(ContactId),\nTEXT( Lead.MQL_Priority__c ),\nTEXT( Contact.MQL_Priority__c )\n)",
        "returnType": "string",
        "formulaMode": "active",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Website_Referrer_URL__c",
        "type": "textarea",
        "label": "Website Referrer URL"
      },
      {
        "apiName": "utm_campaign__c",
        "type": "string",
        "label": "utm_campaign"
      },
      {
        "apiName": "utm_content__c",
        "type": "string",
        "label": "utm_content"
      },
      {
        "apiName": "utm_medium__c",
        "type": "string",
        "label": "utm_medium"
      },
      {
        "apiName": "utm_source__c",
        "type": "string",
        "label": "utm_source"
      },
      {
        "apiName": "utm_term__c",
        "type": "string",
        "label": "utm_term"
      },
      {
        "apiName": "zoom_app__Is_Registrant__c",
        "type": "boolean",
        "label": "Is_Registrant",
        "default": "0"
      },
      {
        "apiName": "zoom_app__Registrant_Id__c",
        "type": "string",
        "label": "Registrant Id"
      },
      {
        "apiName": "zoom_app__Zoom_Webinar_Registrant__c",
        "type": "reference",
        "label": "Zoom Webinar Registrant",
        "referenceTo": [
          "zoom_app__Zoom_Webinar_Registrant__c"
        ],
        "relationshipName": "Campaign_Members"
      },
      {
        "apiName": "zoom_app__isPanelist__c",
        "type": "boolean",
        "label": "isPanelist",
        "default": "0"
      },
      {
        "apiName": "zoom_app__join_time__c",
        "type": "datetime",
        "label": "Webinar Join Time"
      },
      {
        "apiName": "zoom_app__leave_time__c",
        "type": "datetime",
        "label": "Webinar Leave Time"
      },
      {
        "apiName": "zoom_app__panelist_Id__c",
        "type": "string",
        "label": "Panelist Id"
      }
    ],
    "indices": [
      {
        "columns": [
          "LeadId",
          "CreatedDate"
        ]
      },
      {
        "columns": [
          "ContactId",
          "CreatedDate"
        ]
      }
    ],
    "managedRelationships": [
      {
        "fieldApiName": "CampaignId",
        "parentObject": "Campaign",
        "isSharingParent": true,
        "cascadeDelete": true
      }
    ]
  }
]
