<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Project Trackr Development Log &#187; Database</title>
	<atom:link href="http://logbook.projecttrackr.com/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://logbook.projecttrackr.com</link>
	<description>Building a better web based project management solution</description>
	<lastBuildDate>Mon, 15 Mar 2010 15:33:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Users and accounts ER diagram</title>
		<link>http://logbook.projecttrackr.com/database/users-and-accounts-er-diagram/</link>
		<comments>http://logbook.projecttrackr.com/database/users-and-accounts-er-diagram/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 15:09:03 +0000</pubDate>
		<dc:creator>Damian Jakusz-Gostomski</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://logbook.projecttrackr.com/?p=200</guid>
		<description><![CDATA[


This ER diagram shows the database implementation of the tables modelling the users, accounts and groups.
With the accounts table, there is no seperate between if an account is a company account (account which leads a project) or a client account (the account on the receiving end of the project) as this distinction is made at [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_201" class="wp-caption alignleft" style="width: 310px"><a href="http://logbook.projecttrackr.com/wp-content/uploads/2009/10/users-and-accounts.png"><img class="size-medium wp-image-201    " title="Users and Accounts" src="http://logbook.projecttrackr.com/wp-content/uploads/2009/10/users-and-accounts-300x272.png" alt="How users and accounts will be modeled in the database" width="300" height="272" /></a><p class="wp-caption-text">How users and accounts will be modeled in the database</p></div>
<p>This ER diagram shows the database implementation of the tables modelling the users, accounts and groups.</p>
<p>With the accounts table, there is no seperate between if an account is a company account (account which leads a project) or a client account (the account on the receiving end of the project) as this distinction is made at run time, as descipbed in <a href="http://logbook.projecttrackr.com/section/accounts/modelling-accounts/">this post on modeling accounts</a>.</p>
<p>When describing the diagram, I&#8217;ll skip all the trivial fields, such as first_name, email etc</p>
<p><strong>Key points:</strong></p>
<ul>
<li>In the users, accounts and groups tables, the primary key is simply an auto incrementing ID.</li>
<li>In the accounts table, the user_id field is a foreign key of the ID column in the users table, and this represents the account owner.</li>
<li>In the users table, the password will be a SHA1 hash, and it will be salted as well, more on this later</li>
<li>A user can optionally have a set of contact details, but at most only one entry in that table, so the users ID will act as both a primary and foreign key</li>
<li>The user/account relation is many to many, meaning each account is made up of 1 or more users, and each user can belong to more then one account. This was discussed in <a href="http://logbook.projecttrackr.com/section/users/linking-users-and-accounts/">this post about linking users and accounts</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://logbook.projecttrackr.com/database/users-and-accounts-er-diagram/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Initial database tables</title>
		<link>http://logbook.projecttrackr.com/database/initial-database-tables/</link>
		<comments>http://logbook.projecttrackr.com/database/initial-database-tables/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 13:04:51 +0000</pubDate>
		<dc:creator>Damian Jakusz-Gostomski</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://logbook.projecttrackr.com/?p=196</guid>
		<description><![CDATA[The following is an initial list of database tables. A lot of the tables for sections (messaging, tasks, milestones etc) are likely to change as those sections evolve. The users, account and project tables seem pretty fixed.
I&#8217;ll get an ER diagram up in the next few days for the first couple of tables, which will [...]]]></description>
			<content:encoded><![CDATA[<p>The following is an initial list of database tables. A lot of the tables for sections (messaging, tasks, milestones etc) are likely to change as those sections evolve. The users, account and project tables seem pretty fixed.</p>
<p>I&#8217;ll get an ER diagram up in the next few days for the first couple of tables, which will also explain more about the choices I&#8217;ve made and what fields will be included.</p>
<p><strong>Accounts and users</strong><br />
users<br />
accounts<br />
account_users<br />
groups<br />
group_users<br />
contact_details</p>
<p><strong>Projects</strong><br />
projects<br />
project_categories<br />
project_category_projects<br />
project_users</p>
<p><strong>Messages</strong><br />
messages<br />
message_categories<br />
message_category_messages</p>
<p><strong>Tasks</strong><br />
tasks<br />
lists<br />
list_categories<br />
list_category_lists<br />
task_priorities<br />
user_lists<br />
user_tasks<br />
group_lists<br />
group_tasks</p>
<p><strong>Tickets</strong><br />
tickets<br />
ticket_messages<br />
ticket_tasks</p>
<p><strong>Milestones</strong><br />
milestones<br />
milestone_categories<br />
milestone_categories_milestones</p>
<p><strong>Files</strong><br />
files<br />
account_files<br />
project_files<br />
file_versions<br />
file_folders<br />
file_folders_files<br />
file_tags<br />
file_tags_files</p>
<p><strong>Comments</strong><br />
comments<br />
comment_comments<br />
project_comments<br />
message_comments<br />
file_comments</p>
<p><strong>Times</strong><br />
times</p>
]]></content:encoded>
			<wfw:commentRss>http://logbook.projecttrackr.com/database/initial-database-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
