Rev 1295 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><TITLE>Database Schema</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINKREL="HOME"TITLE="The Codestriker Guide"HREF="book1.html"><LINKREL="UP"TITLE="Hacking"HREF="c705.html"><LINKREL="PREVIOUS"TITLE="Hacking"HREF="c705.html"><LINKREL="NEXT"TITLE="Code Style Guide"HREF="x830.html"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">The Codestriker Guide: Version 1.9.3</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="c705.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 4. Hacking</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x830.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AEN771">4.2. Database Schema</A></H1><P> The <TTCLASS="FILENAME">bin/install.pl</TT> script contains the<BCLASS="COMMAND">CREATE TABLE</B> statements that are used whenthe Codestriker database is initialised, in the<CODECLASS="VARNAME">$table</CODE> hash. The following tables aredefined:<P></P><DIVCLASS="VARIABLELIST"><DL><DT>project</DT><DD><P> A Codestriker database can consist of a number ofprojects, which have a name, id, description andcreation date. Each code review topic, is linked to aspecific project.</P></DD><DT>topic</DT><DD><P> A topic represents a code review that has beensubmitted to Codestriker. It contains attributes likethe author, title, description, creation date,repository, and is linked to a member project.</P></DD><DT>participant</DT><DD><P> A participant is associated with a topic, and containsan email address, and the type of participant theyare, such as the author, reviewer or observer(somebody was is CC'ed for the review).</P></DD><DT>commentdata</DT><DD><P> A comment is made against a specific review, andconsists of the author and the comment text itself.It is linked with a specific commentstate object.</P></DD><DT>commentstate</DT><DD><P> A commentstate row represents a comment block - a listof comments made against a specific file and linenumber. The comment block has the notion of state,whether it is marked "submitted", "complete" or"invalid".</P></DD><DT>topicbug</DT><DD><P> This table records a many-to-many relationship betweentopics and bug ids. A topic may fix more than one bugid, and likewise, a bug id can be fixed by manytopics.</P></DD><DT>topicfile</DT><DD><P> A topic consists on many file objects, which contain afilename, revision number and an indicator as towhether it is a text or binary file. A file consistsof one or more delta objects.</P></DD><DT>delta</DT><DD><P> A delta is associated with a specific file object, andrepresents a single diff chunk or change. Itrepresents for file X, at line number Y, the followingchange is a part of the review.</P></DD><DT>topichistory</DT><DD><P> Records a trail as to who modified what topicproperties and when that occurred.</P></DD><DT>commentstatehistory</DT><DD><P> Records a trail for the modification ofcomment blocks.</P></DD><DT>topicviewhistory</DT><DD><P> Records who has viewed a topic and when.</P></DD><DT>topicmetric</DT><DD><P> Records the value of a metric against a specific topic.</P></DD><DT>topicusermetric</DT><DD><P> Records the value of a metric against a specific topicfor a specific user.</P></DD></DL></DIV></P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="c705.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book1.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x830.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Hacking</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="c705.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Code Style Guide</TD></TR></TABLE></DIV></BODY></HTML>