Table: projectfile
Represents a file within a project that has been selected for review
Columns
NameTypeConstraintsDescription
systemidINTEGERNOT NULLSystem-generated primary key
projectINTEGERNOT NULLThe project this file belongs to
pathVARCHAR (500)NOT NULLRelative path to the file within the file set for the project
originalpathVARCHAR (500)Optional relative path to the original version of the file within the original file set for the project. Used when the file has been renamed or moved
changetypeCHAR (1)NOT NULLType of change made to this file between original and new versions. Values are:
C: Changed
A: Added
R: Removed
notesTEXTFree-form notes to assist reviewers
reviewprioritySMALLINTPriority of this file (1-3, 3 is highest) for reviewing
Primary key
NameColumnsDescription
pk_projectfilesystemid
Foreign keys
NameColumnsReferenced tableDescription
fk_projectfile_projectprojectproject
Incoming foreign keys
NameColumnsReferencing tableDescription
fk_filecomment_projectfileprojectfilefilecomment
Indexes
NameColumnsDescription
in_projectfile_project_pathproject, path NOTE:
This index should be used on all DB's but MySQL (which requires that a length be specified for the text column)

Schema diagram