Results 1 to 7 of 7

Thread: SugarCRM community edition database structure

  1. #1
    meggiel is offline Member
    Join Date
    Jan 2009
    Posts
    6

    Lightbulb SugarCRM community edition database structure

    Hi all, I am new to SugarCRM. I want to know if the SugarCRM community edition database structure is fixed so I can easily look into the structure and write codes to integrate with other system such as ERP..? Who will be the one to design the database structure and what to change from one version to the other newer version? Please advise.

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: SugarCRM community edition database structure

    The database structure is very clear I think.
    The column names are very easy to understand.

    All bean tables like accounts, contacts, leads etc. have associated custom tables *_cstm if there is at least one custom field defined.
    The relation is bean.id = beand_cstm.id_c.

    The last grteater changes have been from 4.5.1 to 5.0.0, they are documented in SugarWIKI.

    The id-Fields of all tables are UUIDs which can be generated by mySQL uuid() function calls too.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: SugarCRM community edition database structure

    Meggiel,

    Please check out the Web Services (SOAP) API for building integrations between Sugar and other applications. Using the API ensures that your integrations will survive schema upgrades, and is the recommended way for building integrations with Sugar.

    You can find details about the API in the Developer website.
    Susie Williams

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: SugarCRM community edition database structure

    Yes, using the SOPA api would be surely the best way to write version independant code.
    But be careful with float and currency values if you have komma as decimal separator and dot as 1000s separator.
    The SOAP API loves it since 5.0.0 to multiply these numbers with 100 ... ... on each save.

    Greetings
    Harald Kuske

  5. #5
    balajimani is offline Member
    Join Date
    Feb 2009
    Posts
    5

    Default Re: SugarCRM community edition database structure

    Quote Originally Posted by kuske View Post
    Yes, using the SOPA api would be surely the best way to write version independant code.
    But be careful with float and currency values if you have komma as decimal separator and dot as 1000s separator.
    The SOAP API loves it since 5.0.0 to multiply these numbers with 100 ... ... on each save.

    Greetings
    Harald Kuske
    Hi,

    Can you tell me which data is encrypted for IDs in all the tables of SugarCRm database.

    Thanks and Regards,
    Balaji.M

  6. #6
    daniel.passarini's Avatar
    daniel.passarini is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    São Paulo - SP / Brasil
    Posts
    80

    Default Re: SugarCRM community edition database structure

    Hi balajimani

    The IDs creation is set by a function named create_guid() in include/utils.php
    all IDs are created by this function. If you see it, you'll be noticed that the function process the current microtime to create the ID
    Daniel de Carvalho Passarini

    "Fascinating" - Dr. Spock

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: SugarCRM community edition database structure

    You can even use the mysql standard function guid() to create new ID values.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 2008-10-23, 05:59 AM
  2. Relocate a SugarCRM Community edition
    By Currier in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-07-09, 10:09 PM
  3. How to Upload sugarcrm community edition on VPS
    By sawan in forum Developer Help
    Replies: 2
    Last Post: 2008-06-18, 06:08 PM
  4. Replies: 1
    Last Post: 2008-06-18, 02:37 PM
  5. Replies: 6
    Last Post: 2008-05-11, 09:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •