SQL Recipes
A FREE cookbook for SQL queries and examples
FAQ Search Today's Posts Mark Forums Read

Database Design Find articles on variouse database design topics

Go Back   SQL Recipes a FREE cookbook of SQL queries and examples > Articles > Database Design

Reply
 
LinkBack (7) Thread Tools Search this Thread Rating: Thread Rating: 6 votes, 5.00 average.
  7 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-08-2007, 06:15 AM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 107
ben has disabled reputation
Default Civicrm - Contact Management

Earlier in the year I was working on a Drupal site that heavily relied on the CiviCRM module.
From their website: "CiviCRM is the first open source and freely downloadable constituent relationship management solution. CiviCRM is web-based, open source, internationalized, and designed specifically to meet the needs of advocacy, non-profit and non-governmental groups."

While working on this project I took a closer look at the datbase design for storing contact information. It may be over kill for most people, but at least it gives a good example of what can be done. (As well as a good example of best practices.)

You can read more about the database design on this page.

You can also download the latest (version 1.7) MySQL create script for the entire civicrm database in the attachments. The script is very well crafted. Each field is commented and the actual coding style, is to me, excellent. I wish I had a script to study like this one when I first started out...

Here is a partial picture of the database
Attached Files
File Type: zip civicrm_41.zip (24.0 KB, 92 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2007, 02:13 PM
molotov
 
Posts: n/a
Default Why TINYINT?

On the table 'civicrm_mobile_provider', for the fields named 'is_x', why are they TINYINTs and not BOOLs? The field names make me tend to believe they are binary or true/false values.

There are also 'is_x' on other tables as well as 'do_not_x'.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Edit/Delete Message Reply With Quote
  #3 (permalink)  
Old 04-20-2007, 02:36 AM
Roberto
 
Posts: n/a
Default Holy Crap

Wow, ive never seen a more complete contact management database.

What kind of business did u have in mind when u designed, cause it seems like overkill for a small business.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Edit/Delete Message Reply With Quote
  #4 (permalink)  
Old 05-01-2007, 08:38 PM
kevod kevod is offline
Junior Member
 
Join Date: May 2007
Posts: 1
kevod is on a distinguished road
Default Re: Civicrm - Contact Management

hi can you replace the zip file because it wont unzip 4 me
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-02-2007, 10:21 AM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 107
ben has disabled reputation
Default Re: Civicrm - Contact Management

Quote:
Originally Posted by kevod View Post
hi can you replace the zip file because it wont unzip 4 me
Thanks
Done. Should work now. Thanks for pointing this out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.sqlrecipes.com/database_design/civicrm_contact_management-4/
Posted By For Type Date
Scoutnet vzw • Toon onderwerp - procmail no-reply This thread Refback 05-22-2008 08:03 AM
Scoutnet vzw • Toon onderwerp - procmail no-reply This thread Refback 02-23-2008 01:25 PM
Scoutnet vzw :: Bekijk onderwerp - procmail no-reply This thread Refback 10-27-2007 09:55 AM
Scoutnet vzw :: Bekijk onderwerp - procmail no-reply This thread Refback 10-26-2007 06:46 PM
Scoutnet vzw :: Bekijk onderwerp - procmail no-reply This thread Refback 10-26-2007 04:20 PM
Scoutnet vzw :: Bekijk onderwerp - procmail no-reply This thread Refback 10-26-2007 04:08 PM
digg / kevod / news / dugg This thread Refback 05-04-2007 10:52 AM


All times are GMT. The time now is 09:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright (c) 2006-2008 SQL Recipes

1 2 3 4 5 6 7 8