head	1.13;
access;
symbols
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.2
	TIGRIS_0_9_2_1:1.2;
locks; strict;
comment	@# @;


1.13
date	2001.02.27.01.45.45;	author lucas;	state dead;
branches;
next	1.12;

1.12
date	2001.02.24.02.34.10;	author dlr;	state Exp;
branches;
next	1.11;

1.11
date	2001.02.24.02.22.45;	author dlr;	state Exp;
branches;
next	1.10;

1.10
date	2001.02.22.23.58.21;	author edk;	state Exp;
branches;
next	1.9;

1.9
date	2001.02.22.17.17.55;	author brian;	state Exp;
branches;
next	1.8;

1.8
date	2001.02.22.16.22.49;	author leonardr;	state Exp;
branches;
next	1.7;

1.7
date	2001.02.22.15.50.34;	author leonardr;	state Exp;
branches;
next	1.6;

1.6
date	2001.02.21.20.35.13;	author dlr;	state Exp;
branches;
next	1.5;

1.5
date	2001.02.21.20.29.29;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2001.02.21.20.16.28;	author elicia;	state Exp;
branches;
next	1.3;

1.3
date	2001.02.21.01.08.28;	author dlr;	state Exp;
branches;
next	1.2;

1.2
date	2001.01.27.04.27.21;	author dlr;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2001.01.27.03.02.46;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.02.21.00.36.30;	author dlr;	state Exp;
branches;
next	;

1.2.2.1
date	2001.01.31.04.19.05;	author dlr;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	2001.01.31.04.20.57;	author dlr;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2001.01.31.04.23.20;	author dlr;	state Exp;
branches;
next	1.2.2.4;

1.2.2.4
date	2001.01.31.17.47.04;	author leonardr;	state Exp;
branches;
next	1.2.2.5;

1.2.2.5
date	2001.02.01.01.37.05;	author dlr;	state Exp;
branches;
next	1.2.2.6;

1.2.2.6
date	2001.02.02.19.05.27;	author leonardr;	state Exp;
branches;
next	1.2.2.7;

1.2.2.7
date	2001.02.07.01.20.05;	author dlr;	state Exp;
branches;
next	1.2.2.8;

1.2.2.8
date	2001.02.07.01.39.34;	author dlr;	state Exp;
branches;
next	1.2.2.9;

1.2.2.9
date	2001.02.07.01.44.41;	author dlr;	state Exp;
branches;
next	1.2.2.10;

1.2.2.10
date	2001.02.07.01.50.44;	author dlr;	state Exp;
branches;
next	1.2.2.11;

1.2.2.11
date	2001.02.07.20.23.59;	author dlr;	state Exp;
branches;
next	1.2.2.12;

1.2.2.12
date	2001.02.09.00.17.42;	author dlr;	state Exp;
branches;
next	1.2.2.13;

1.2.2.13
date	2001.02.09.22.59.53;	author elicia;	state Exp;
branches;
next	1.2.2.14;

1.2.2.14
date	2001.02.12.20.26.13;	author leonardr;	state Exp;
branches;
next	1.2.2.15;

1.2.2.15
date	2001.02.12.22.14.58;	author elicia;	state Exp;
branches;
next	1.2.2.16;

1.2.2.16
date	2001.02.13.00.10.04;	author jmcnally;	state Exp;
branches;
next	1.2.2.17;

1.2.2.17
date	2001.02.13.01.57.44;	author dlr;	state Exp;
branches;
next	1.2.2.18;

1.2.2.18
date	2001.02.13.03.31.26;	author dlr;	state Exp;
branches;
next	1.2.2.19;

1.2.2.19
date	2001.02.16.00.29.49;	author dlr;	state Exp;
branches;
next	1.2.2.20;

1.2.2.20
date	2001.02.17.00.28.30;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Added the ability for torque to be called from within the Helm build procedure.  The only major restructure is that the helm-schema.xml file will now live in the sql/schema directory instead of sql/org/tigris/helm.
@
text
@<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE app-data SYSTEM
          "http://java.apache.org/turbine/dtd/database.dtd">

<!-- ==================================================================== -->
<!--                                                                      -->
<!-- H E L M  P R O J E C T  S C H E M A                                  -->
<!--                                                                      -->
<!-- ==================================================================== -->
<!-- Defines the Helm database schema.                                    -->
<!-- ==================================================================== -->

<app-data>
<database>

  <table name="HELM_ACTION" idMethod="autoincrement" javaName="Action">
    <column name="ACTION_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="99" required="true"/>
    <!-- Possible values: 'Host', 'Domain', 'Project' -->
    <column name="TYPE" type="VARCHAR" size="7" default="Host"/>

    <unique>
      <unique-column name="NAME"/>
    </unique>
  </table>

  <table name="HELM_AUDIT_LOG_ENTRY" idMethod="autoincrement"
         javaName="AuditLogEntry">
    <column name="ENTRY_ID" type="INTEGER" required="true" autoIncrement="true"
            primaryKey="true"/>
    <column name="TIMESTAMP" type="TIMESTAMP"/>
    <!-- Possible values: 'Host', 'Domain', 'Project' -->
    <column name="AFFECTED_TYPE" type="VARCHAR" size="7" required="true"
            default="Host"/>
    <column name="AFFECTED_ID" type="INTEGER" required="true"/>
    <column name="INITIATING_USER" type="INTEGER" required="true"/>
    <column name="DESCRIPTION" type="LONGVARCHAR"/>
    <column name="RATIONALE" type="LONGVARCHAR"/>
    <foreign-key foreignTable="HELM_USER">
        <reference local="INITIATING_USER" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_DOMAIN" idMethod="autoincrement" javaName="Domain">
    <column name="DOMAIN_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="255" required="true"/>
    <unique>
      <unique-column name="NAME"/>
    </unique>
  </table>

  <table name="HELM_INVITATION" idMethod="autoincrement" javaName="Invitation">
    <column name="INVITATION_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="TICKET" type="VARCHAR" size="255" required="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true"/>
    <column name="INVITATION_DATE" type="TIMESTAMP" required="true"/>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_MAILINGLIST" idMethod="autoincrement"
         javaName="MailingList">
    <column name="MAILINGLIST_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true"/>
    <column name="LIST_NAME" type="VARCHAR" size="64" required="true"/>
    <column name="TYPE" type="VARCHAR" size="64" required="true"/>
    <column name="IS_PRIVATE" type="CHAR" size="1" required="true"
            default="N"/>
    <column name="DESCRIPTION" type="LONGVARCHAR"/>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_PROJECT" idMethod="autoincrement" javaName="Project">
    <column name="PROJECT_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="DOMAIN_ID" type="INTEGER" required="true"/>
    <column name="NAME" type="VARCHAR" size="64" required="true" default=""/>
    <column name="LICENSE" type="VARCHAR" size="64"/>
    <column name="SHORT_DESCRIPTION" type="VARCHAR" size="64"/>
    <column name="LONG_DESCRIPTION" type="LONGVARCHAR"/>
    <column name="USE_INDEX" type="CHAR" size="1" required="true"
            default="N"/>
    <column name="STATUS" type="LONGVARCHAR" default=""/>
    <!-- Possible values: 'development', 'discussion', 'category', 'clone', 'special' -->
    <column name="PROFILE" type="VARCHAR" size="11" required="true" default="development"/>
    <!-- Possible values:'base', 'group', 'category', 'domain', 'host'  -->
    <column name="TYPE" type="VARCHAR" size="8" required="true" default="base"
	 inheritance="single">
     <inheritance key="group" class="ProjectGroup"/>
     <inheritance key="category" class="Category" extends="ProjectGroup"/>
     <inheritance key="domain" class="DomainProjectGroup" extends="ProjectGroup"/>
     <inheritance key="host" class="HostProjectGroup" extends="ProjectGroup"/>
    </column>
    <column name="ALIAS_URL" type="VARCHAR" size="128"/>
    <column name="MEMBER_POLICY" type="INTEGER" required="true"/>
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
    <column name="APPROVED_BY" type="INTEGER" required="true"/>
    <column name="SKIN_ID" type="INTEGER"/>
    <column name="IS_PROPRIETARY" type="CHAR" size="1" required="true"
            default="N"/>
    <foreign-key foreignTable="HELM_DOMAIN">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="APPROVED_BY" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_SKIN">
        <reference local="SKIN_ID" foreign="SKIN_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_PROJECTDOCUMENT" idMethod="autoincrement"
         javaName="ProjectDocument">
    <column name="DOCUMENT_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true"/>
    <column name="NAME" type="VARCHAR" size="128" required="true"/>
    <column name="DESCRIPTION" type="LONGVARCHAR" default=""/>
    <column name="TYPE" type="VARCHAR" size="128" required="true"/>
    <column name="FILE_NAME" type="VARCHAR" size="128"/>
    <column name="IS_PUBLIC" type="CHAR" size="1" required="true"
            default="N"/>
    <column name="MD5" type="VARCHAR" size="255"/>
    <column name="SIZE" type="BIGINT" required="true"/>
    <column name="UPLOADED_DATE" type="DATE"/>
    <column name="LOCATION" type="VARCHAR" size="128"/>
    <column name="URL" type="VARCHAR" size="128"/>
    <column name="TEXT" type="VARCHAR" size="255"/>
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
    <column name="APPROVED_BY" type="INTEGER"/>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="APPROVED_BY" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_PROJECT_DOCUMENT_SECTION" idMethod="none"
         javaName="ProjectDocumentSection">
    <column name="DOCUMENT_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <column name="SECTION_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <foreign-key foreignTable="HELM_PROJECTDOCUMENT">
        <reference local="DOCUMENT_ID" foreign="DOCUMENT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_PROJECTSECTION">
        <reference local="SECTION_ID" foreign="SECTION_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_PROJECTDOWNLOAD" idMethod="autoincrement"
         javaName="ProjectDownload">
    <column name="DOWNLOAD_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true"/>
    <column name="FILE_NAME" type="VARCHAR" size="128" required="true"/>
    <column name="LOCATION" type="VARCHAR" size="128" required="true"/>
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
    <column name="APPROVED_BY" type="INTEGER"/>
    <column name="IS_PUBLIC" type="CHAR" size="1" required="true"
            default="N"/>
    <column name="DESCRIPTION" type="LONGVARCHAR" default=""/>
    <column name="UPLOADED_DATE" type="DATE" required="true"/>
    <column name="SIZE" type="BIGINT" required="true"/>
    <column name="MD5" type="VARCHAR" size="255"/>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="APPROVED_BY" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_PROJECT_PROJECTGROUP" idMethod="none"
         javaName="ProjectProjectgroup">
    <column name="PROJECT_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <column name="PROJECT_GROUP_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_GROUP_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_NEWSITEM" idMethod="autoincrement"
         javaName="NewsItem">
    <column name="NEWS_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true"/>
    <column name="EVENT_DATE" type="DATE"/>
    <column name="HEADLINE" type="VARCHAR" size="128" required="true"/>
    <column name="BODY" type="LONGVARCHAR" required="true"/>
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
    <column name="APPROVED_BY" type="INTEGER" required="true"/>
    <column name="PUBLISH_DATE" type="DATE"/>
    <column name="REMOVE_DATE" type="DATE"/>
    <column name="PRIORITY" type="INTEGER"/>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="APPROVED_BY" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_PROJECTSECTION" idMethod="autoincrement"
         javaName="ProjectSection">
    <column name="SECTION_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PARENT_ID" type="INTEGER" default="NULL"/>
    <column name="PROJECT_ID" type="INTEGER" required="true"/>
    <column name="NAME" type="VARCHAR" size="128" required="true"/>
    <column name="DESCRIPTION" type="VARCHAR" size="255" default=""/>
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
    <column name="APPROVED_BY" type="INTEGER"/>
    <foreign-key foreignTable="HELM_PROJECTSECTION">
        <reference local="PARENT_ID" foreign="SECTION_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="APPROVED_BY" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_RESOURCE" idMethod="autoincrement" javaName="Resource">
    <column name="RESOURCE_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PATTERN" type="VARCHAR" size="99" required="true"/>
    <column name="DESCRIPTION" type="VARCHAR" size="99" required="true"/>
    <unique>
      <unique-column name="PATTERN"/>
    </unique>
  </table>

  <table name="HELM_ROLE" idMethod="autoincrement" javaName="Role">
    <column name="ROLE_ID" type="INTEGER" required="true" autoIncrement="true" 
            primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="99" required="true"/>
    <!-- Possible values: ('Host', 'Domain', 'Project' -->
    <column name="TYPE" type="VARCHAR" size="7" required="true"
            default="Project"/>
    <column name="DESCRIPTION" type="LONGVARCHAR"/>
    <column name="DENOTES_OWNER" type="CHAR" size="1" required="true"
            default="N"/>
    <column name="REQUESTABLE" type="CHAR" size="1" required="true"
            default="N"/>

    <unique>
      <unique-column name="NAME"/>
    </unique>
  </table>

  <table name="HELM_ROLE_ACTION_RESOURCE" idMethod="none"
	javaName="RoleActionResource">
    <column name="ROLE_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="ACTION_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="RESOURCE_ID" type="INTEGER" required="true"
            primaryKey="true"/>

    <foreign-key foreignTable="HELM_ROLE">
        <reference local="ROLE_ID" foreign="ROLE_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_ACTION">
        <reference local="ACTION_ID" foreign="ACTION_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_RESOURCE">
        <reference local="RESOURCE_ID" foreign="RESOURCE_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_SKIN" idMethod="autoincrement" javaName="Skin">
    <column name="SKIN_ID" type="INTEGER" required="true" autoIncrement="true"
            primaryKey="true"/>
    <column name="BASE_SKIN" type="INTEGER"/>
    <column name="NAME" type="VARCHAR" size="127" required="true"/>
    <column name="RESOURCE" type="VARCHAR" size="255" required="true"/>

    <foreign-key foreignTable="HELM_SKIN">
        <reference local="BASE_SKIN" foreign="SKIN_ID"/>
    </foreign-key>

    <unique>
      <unique-column name="NAME"/>
    </unique>
  </table>

  <table name="HELM_SKIN_STYLE_ELEMENT_VALUE" idMethod="none"
         javaName="SkinStyleElementValue">
    <column name="SKIN_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="STYLE_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="ELEMENT_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <column name="VALUE" type="VARCHAR" size="128" required="true"/>

    <foreign-key foreignTable="HELM_SKIN">
        <reference local="SKIN_ID" foreign="SKIN_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_STYLE">
        <reference local="STYLE_ID" foreign="STYLE_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_STYLEELEMENT">
        <reference local="ELEMENT_ID" foreign="ELEMENT_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_STYLE" idMethod="autoincrement" javaName="Style">
    <column name="STYLE_ID" type="INTEGER" required="true" autoIncrement="true"
            primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="127" required="true"/>
    <column name="DESCRIPTION" type="VARCHAR" size="255" required="true"/>

    <unique>
      <unique-column name="NAME"/>
    </unique>
  </table>

  <table name="HELM_STYLEELEMENT" idMethod="autoincrement"
         javaName="StyleElement">
    <column name="ELEMENT_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="HTML_NAME" type="VARCHAR" size="255"/>
    <column name="CSS_NAME" type="VARCHAR" size="255"/>
    <column name="ASSOCIATED_HTML_TAG" type="VARCHAR" size="20"/>
    <column name="DESCRIPTION" type="VARCHAR" size="255"/>
  </table>

  <table name="HELM_TASK" idMethod="autoincrement" javaName="Task">
    <column name="TASK_ID" type="INTEGER" required="true" autoIncrement="true"
            primaryKey="true"/>
    <column name="TIMESTAMP" type="TIMESTAMP"/>
    <column name="ON_BEHALF_OF" type="INTEGER" required="true"/>
    <column name="COMPONENT" type="VARCHAR" size="255"/>
    <column name="AFFECTED_OBJECT_ID" type="INTEGER"/>
    <column name="COMMAND" type="LONGVARCHAR"/>
    <column name="ARGUMENTS" type="LONGVARCHAR"/>

    <foreign-key foreignTable="HELM_USER">
        <reference local="ON_BEHALF_OF" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_USER" idMethod="autoincrement" javaName="User">
    <column name="USER_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="DOMAIN_ID" type="INTEGER" required="true"/>
    <column name="LOGIN_NAME" type="VARCHAR" size="32" required="true"/>
    <column name="PASSWORD" type="VARCHAR" size="32"/>
    <column name="REAL_NAME" type="VARCHAR" size="99" required="true"/>
    <column name="ADDRESS1" type="VARCHAR" size="32"/>
    <column name="ADDRESS2" type="VARCHAR" size="32"/>
    <column name="CITY" type="VARCHAR" size="32"/>
    <column name="STATE" type="VARCHAR" size="32"/>
    <column name="POSTALCODE" type="VARCHAR" size="32"/>
    <column name="COUNTRY" type="VARCHAR" size="32"/>
    <column name="CITIZENSHIP" type="VARCHAR" size="32"/>
    <column name="PHONE" type="VARCHAR" size="32"/>
    <column name="ALTPHONE" type="VARCHAR" size="32"/>
    <column name="FAX" type="VARCHAR" size="32"/>
    <column name="CELL" type="VARCHAR" size="32"/>
    <column name="PAGER" type="VARCHAR" size="32"/>
    <column name="EMAIL" type="VARCHAR" size="99"/>
    <column name="ORGANIZATION" type="VARCHAR" size="99" default=""/>
    <column name="MODIFIED" type="TIMESTAMP"/>
    <column name="CREATED" type="TIMESTAMP"/>
    <!-- Possible values: ('base', 'nobody', 'host', 'domain', 'group' -->
    <column name="TYPE" type="VARCHAR" size="6" required="true" default="base"
	 inheritance="single">
     <inheritance key="group" class="UserGroup"/>
     <inheritance key="domain" class="DomainUserGroup" extends="UserGroup"/>
     <inheritance key="host" class="HostUserGroup" extends="UserGroup"/>
    </column>
    <column name="PASSWORD_TICKET" type="VARCHAR" size="255"/>

    <foreign-key foreignTable="HELM_DOMAIN">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
    </foreign-key>

    <unique>
      <unique-column name="LOGIN_NAME"/>
      <unique-column name="DOMAIN_ID"/>
    </unique>
  </table>

  <table name="HELM_USER_USERGROUP" idMethod="none" javaName="UserUsergroup">
    <column name="USER_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="USER_GROUP_ID" type="INTEGER" required="true"
            primaryKey="true"/>

    <foreign-key foreignTable="HELM_USER">
        <reference local="USER_ID" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="USER_GROUP_ID" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_USER_PROJECT_INTEREST" idMethod="none"
         javaName="UserProjectInterest">
    <column name="USER_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true" primaryKey="true"/>
    <foreign-key foreignTable="HELM_USER">
        <reference local="USER_ID" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_USER_ROLE_PROJECT" idMethod="none" 
	javaName="UserRoleProject">
    <column name="USER_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="ROLE_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="APPROVED_BY" type="INTEGER"/>

    <foreign-key foreignTable="HELM_USER">
        <reference local="USER_ID" foreign="USER_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_ROLE">
        <reference local="ROLE_ID" foreign="ROLE_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_USER">
        <reference local="APPROVED_BY" foreign="USER_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_VC_MAP" idMethod="autoincrement" javaName="VCMap">
    <column name="MAP_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="VIEW_ID" type="INTEGER" required="true"/>
    <column name="REPOSITORY_DIR" type="LONGVARCHAR" required="true"/>
    <column name="WORKING_DIR" type="LONGVARCHAR"/>
    <column name="FILE_LIST" type="LONGVARCHAR"/>
    <foreign-key foreignTable="HELM_VC_VIEW">
        <reference local="VIEW_ID" foreign="VIEW_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_VC_VIEW" idMethod="autoincrement" javaName="VCView">
    <column name="VIEW_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="DOMAIN_ID" type="INTEGER" required="true"/>
    <column name="NAME" type="LONGVARCHAR" required="true"/>
    <foreign-key foreignTable="HELM_DOMAIN">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
    </foreign-key>
  </table>

</database>
</app-data>
@


1.12
log
@APPROVED_BY must be set to the primary database key of the nobody user
in the NewsItem.add() method if the news item has not been approved.
@
text
@@


1.11
log
@The name PRIVATE generates uncompileable Java code.  Change to
IS_PRIVATE.
@
text
@d215 1
a215 1
    <column name="APPROVED_BY" type="INTEGER"/>
@


1.10
log
@add a new column for mailing lists
@
text
@d72 2
a73 1
    <column name="PRIVATE" type="CHAR" size="1" required="true" default="N"/>
@


1.9
log
@
Obtained from:
Submitted by:
Reviewed by:

Fix typo.
@
text
@d72 1
@


1.8
log
@Organization should default to empty string instead of null.
@
text
@d88 1
a88 1
    <column name="STATUS" type="LONGVARCHAR"/ default="">
@


1.7
log
@Default status to empty string.
@
text
@d389 1
a389 1
    <column name="ORGANIZATION" type="VARCHAR" size="99"/>
@


1.6
log
@Properly correct syntax errors.
@
text
@d88 1
a88 1
    <column name="STATUS" type="LONGVARCHAR"/>
@


1.5
log
@Corrected XML error.
@
text
@d129 2
a130 1
    <column name="IS_PUBLIC" type="CHAR" size="1" required="true"/>
d133 1
a133 2
    <column name="UPLOADED_DATE" type="DATE">
            default="N"/>
@


1.4
log
@added fields Md6, uploadedDate, size, is_public to HELM_PROJECTDOCUMENt
PR:
@
text
@d129 1
a129 1
    <column name="IS_PUBLIC" type="CHAR" size="1" required="true"
@


1.3
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d130 3
@


1.2
log
@Corrected javaName.
@
text
@d1 4
d20 3
a25 2
    <!-- Possible values: 'Host', 'Domain', 'Project' -->
    <column name="TYPE" type="VARCHAR" size="7" default="Host"/>
a32 3
    <unique>
      <unique-column name="AFFECTED_TYPE"/>
    </unique>
d34 2
a35 1
    <column name="AFFECTED_TYPE" type="VARCHAR" size="7" default="Host"/>
d86 2
a87 1
    <column name="USE_INDEX" type="CHAR" size="1" required="true" default="false"/>
d92 7
a98 1
    <column name="TYPE" type="VARCHAR" size="8" required="true" default="base"/>
d105 1
a105 1
            default="false"/>
d130 2
a131 2
            default="false"/>
    <column name="LOCATION" type="VARCHAR" size="128" required="true"/>
d134 1
a134 1
    <column name="SUGGESTED_BY" type="INTEGER" required="true"/>
d140 1
a140 1
        <reference local="SUGGESTED_BY" foreign="USER_ID"/>
d147 1
a147 1
  <table name="HELM_PROJECT_DOCUMENT_SECTION" idMethod="autoincrement"
d168 1
a168 1
    <column name="SUGGESTED_BY" type="INTEGER" required="true"/>
d171 1
a171 1
            default="false"/>
d180 1
a180 1
        <reference local="SUGGESTED_BY" foreign="USER_ID"/>
d187 1
a187 1
  <table name="HELM_PROJECT_PROJECTGROUP" idMethod="autoincrement"
d197 1
a197 1
        <reference local="PROJECT_GROUP_ID" foreign="PROJECT_GROUP_ID"/>
d201 2
a202 2
  <table name="HELM_PROJECTNEWS" idMethod="autoincrement"
         javaName="ProjectNews">
d211 2
a212 2
    <column name="PUBLISH_ON" type="DATE"/>
    <column name="REMOVE_ON" type="DATE"/>
d233 1
a233 1
    <column name="SUGGESTED_BY" type="INTEGER" required="true"/>
d242 1
a242 1
        <reference local="SUGGESTED_BY" foreign="USER_ID"/>
d260 3
a262 2
    <column name="ROLE_ID" type="INTEGER" required="true" autoincrement="true" primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="99" requred="true"/>    
d264 2
a265 1
    <column name="TYPE" type="VARCHAR" size="7" requred="true" default="Project"/>
d267 2
d270 1
a270 1
            default="false"/>
d277 2
a278 2
  <table name="HELM_ROLE_ACTION_RESOURCE" idMethod="autoincrement"
         javaName="RoleActionResource">
d287 1
a287 1
    <foreign-key foreignTable="HELM_ROLE">
d290 1
a290 1
    <foreign-key foreignTable="HELM_PROJECT">
d296 1
a296 1
    <column name="SKIN_ID" type="INTEGER" required="true" autoincrement="true"
d299 6
a304 2
    <column name="NAME" type="VARCHAR" size="127" requred="true"/>
    <column name="RESOURCE" type="VARCHAR" size="255" requred="true"/>
a308 4

    <foreign-key foreignTable="HELM_SKIN">
        <reference local="BASE_SKIN" foreign="SKIN_ID"/>
    </foreign-key>
d311 1
a311 1
  <table name="HELM_SKIN_STYLE_ELEMENT_VALUE" idMethod="autoincrement"
d317 1
a317 1
    <column name="VALUE" type="VARCHAR" size="128" requred="true"/>
d325 1
a325 1
    <foreign-key foreignTable="HELM_ELEMENT">
d331 1
a331 1
    <column name="STYLE_ID" type="INTEGER" required="true" autoincrement="true"
d333 2
a334 2
    <column name="NAME" type="VARCHAR" size="127" requred="true"/>
    <column name="DESCRIPTION" type="VARCHAR" size="255" requred="true"/>
d344 1
a344 1
            autoincrement="true" primaryKey="true"/>
d352 1
a352 1
    <column name="TASK_ID" type="INTEGER" required="true" autoincrement="true"
d360 2
a361 1
    <foreign-key foreignTable="USER_ID">
d368 1
a368 1
            autoincrement="true" primaryKey="true"/>
d390 11
a400 2
    <column name="TYPE" type="VARCHAR" size="6" required="true" default="base"/>
    <column name="PASSWORDTICKET" type="VARCHAR" size="255"/>
a405 4

    <foreign-key foreignTable="DOMAIN_ID">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
    </foreign-key>
d408 1
a408 2
  <table name="HELM_USER_USERGROUP" idMethod="autoincrement"
         javaName="UserUsergroup">
d421 1
a421 1
  <table name="HELM_USER_PROJECT_INTEREST" idMethod="autoincrement"
d433 2
a434 2
  <table name="HELM_USER_ROLE_PROJECT" idMethod="autoincrement"
         javaName="UserRoleProject">
d469 1
a469 1
    <column name="DOMAIN_ID" type="INTEGER" required="true" primaryKey="true"/>
@


1.2.2.1
log
@Defined AFFECTED_TYPE as NOT NULL.
@
text
@d28 3
d32 1
a32 2
    <column name="AFFECTED_TYPE" type="VARCHAR" size="7" required="true"
            default="Host"/>
a39 3
    <unique>
      <unique-column name="AFFECTED_TYPE"/>
    </unique>
@


1.2.2.2
log
@requred --> required
@
text
@d251 2
a252 3
    <column name="ROLE_ID" type="INTEGER" required="true" autoincrement="true" 
            primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="99" required="true"/>
d254 1
a254 2
    <column name="TYPE" type="VARCHAR" size="7" requred="true"
            default="Project"/>
@


1.2.2.3
log
@requred --> required
@
text
@d255 1
a255 1
    <column name="TYPE" type="VARCHAR" size="7" required="true"
d288 2
a289 2
    <column name="NAME" type="VARCHAR" size="127" required="true"/>
    <column name="RESOURCE" type="VARCHAR" size="255" required="true"/>
d306 1
a306 1
    <column name="VALUE" type="VARCHAR" size="128" required="true"/>
d322 2
a323 2
    <column name="NAME" type="VARCHAR" size="127" required="true"/>
    <column name="DESCRIPTION" type="VARCHAR" size="255" required="true"/>
@


1.2.2.4
log
@correctly capitalized autoIncrement
@
text
@d12 1
a12 1
  <table name="HELM_ACTION" idMethod="autoIncrement" javaName="Action">
d23 1
a23 1
  <table name="HELM_AUDIT_LOG_ENTRY" idMethod="autoIncrement"
d43 1
a43 1
  <table name="HELM_DOMAIN" idMethod="autoIncrement" javaName="Domain">
d52 1
a52 1
  <table name="HELM_INVITATION" idMethod="autoIncrement" javaName="Invitation">
d63 1
a63 1
  <table name="HELM_MAILINGLIST" idMethod="autoIncrement"
d76 1
a76 1
  <table name="HELM_PROJECT" idMethod="autoIncrement" javaName="Project">
d111 1
a111 1
  <table name="HELM_PROJECTDOCUMENT" idMethod="autoIncrement"
d138 1
a138 1
  <table name="HELM_PROJECT_DOCUMENT_SECTION" idMethod="autoIncrement"
d152 1
a152 1
  <table name="HELM_PROJECTDOWNLOAD" idMethod="autoIncrement"
d178 1
a178 1
  <table name="HELM_PROJECT_PROJECTGROUP" idMethod="autoIncrement"
d192 1
a192 1
  <table name="HELM_PROJECTNEWS" idMethod="autoIncrement"
d216 1
a216 1
  <table name="HELM_PROJECTSECTION" idMethod="autoIncrement"
d240 1
a240 1
  <table name="HELM_RESOURCE" idMethod="autoIncrement" javaName="Resource">
d250 2
a251 2
  <table name="HELM_ROLE" idMethod="autoIncrement" javaName="Role">
    <column name="ROLE_ID" type="INTEGER" required="true" autoIncrement="true" 
d266 1
a266 1
  <table name="HELM_ROLE_ACTION_RESOURCE" idMethod="autoIncrement"
d284 2
a285 2
  <table name="HELM_SKIN" idMethod="autoIncrement" javaName="Skin">
    <column name="SKIN_ID" type="INTEGER" required="true" autoIncrement="true"
d300 1
a300 1
  <table name="HELM_SKIN_STYLE_ELEMENT_VALUE" idMethod="autoIncrement"
d319 2
a320 2
  <table name="HELM_STYLE" idMethod="autoIncrement" javaName="Style">
    <column name="STYLE_ID" type="INTEGER" required="true" autoIncrement="true"
d330 1
a330 1
  <table name="HELM_STYLEELEMENT" idMethod="autoIncrement"
d333 1
a333 1
            autoIncrement="true" primaryKey="true"/>
d340 2
a341 2
  <table name="HELM_TASK" idMethod="autoIncrement" javaName="Task">
    <column name="TASK_ID" type="INTEGER" required="true" autoIncrement="true"
d354 1
a354 1
  <table name="HELM_USER" idMethod="autoIncrement" javaName="User">
d356 1
a356 1
            autoIncrement="true" primaryKey="true"/>
d391 1
a391 1
  <table name="HELM_USER_USERGROUP" idMethod="autoIncrement"
d405 1
a405 1
  <table name="HELM_USER_PROJECT_INTEREST" idMethod="autoIncrement"
d417 1
a417 1
  <table name="HELM_USER_ROLE_PROJECT" idMethod="autoIncrement"
d438 1
a438 1
  <table name="HELM_VC_MAP" idMethod="autoIncrement" javaName="VCMap">
d450 1
a450 1
  <table name="HELM_VC_VIEW" idMethod="autoIncrement" javaName="VCView">
@


1.2.2.5
log
@Name should be two parts.
@
text
@d379 1
a379 1
    <column name="PASSWORD_TICKET" type="VARCHAR" size="255"/>
@


1.2.2.6
log
@Changed inappropriate idMethods.
@
text
@d138 1
a138 1
  <table name="HELM_PROJECT_DOCUMENT_SECTION" idMethod="none"
d178 1
a178 1
  <table name="HELM_PROJECT_PROJECTGROUP" idMethod="none"
d266 2
a267 2
  <table name="HELM_ROLE_ACTION_RESOURCE" idMethod="none"
	javaName="RoleActionResource">
d300 1
a300 1
  <table name="HELM_SKIN_STYLE_ELEMENT_VALUE" idMethod="none"
d391 2
a392 1
  <table name="HELM_USER_USERGROUP" idMethod="none" javaName="UserUsergroup">
d405 1
a405 1
  <table name="HELM_USER_PROJECT_INTEREST" idMethod="none"
d417 2
a418 2
  <table name="HELM_USER_ROLE_PROJECT" idMethod="none" 
	javaName="UserRoleProject">
@


1.2.2.7
log
@Added validation and made Xerces happy.
@
text
@a0 4
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE app-data SYSTEM
          "http://java.apache.org/turbine/dtd/database.dtd">

d12 1
a12 1
  <table name="HELM_ACTION" idMethod="autoincrement" javaName="Action">
a15 3
    <!-- Possible values: 'Host', 'Domain', 'Project' -->
    <column name="TYPE" type="VARCHAR" size="7" default="Host"/>

d19 2
d23 1
a23 1
  <table name="HELM_AUDIT_LOG_ENTRY" idMethod="autoincrement"
d43 1
a43 1
  <table name="HELM_DOMAIN" idMethod="autoincrement" javaName="Domain">
d52 1
a52 1
  <table name="HELM_INVITATION" idMethod="autoincrement" javaName="Invitation">
d63 1
a63 1
  <table name="HELM_MAILINGLIST" idMethod="autoincrement"
d76 1
a76 1
  <table name="HELM_PROJECT" idMethod="autoincrement" javaName="Project">
d111 1
a111 1
  <table name="HELM_PROJECTDOCUMENT" idMethod="autoincrement"
d152 1
a152 1
  <table name="HELM_PROJECTDOWNLOAD" idMethod="autoincrement"
d192 1
a192 1
  <table name="HELM_PROJECTNEWS" idMethod="autoincrement"
d216 1
a216 1
  <table name="HELM_PROJECTSECTION" idMethod="autoincrement"
d240 1
a240 1
  <table name="HELM_RESOURCE" idMethod="autoincrement" javaName="Resource">
d250 1
a250 1
  <table name="HELM_ROLE" idMethod="autoincrement" javaName="Role">
d284 1
a284 1
  <table name="HELM_SKIN" idMethod="autoincrement" javaName="Skin">
d291 4
a297 4

    <unique>
      <unique-column name="NAME"/>
    </unique>
d319 1
a319 1
  <table name="HELM_STYLE" idMethod="autoincrement" javaName="Style">
d330 1
a330 1
  <table name="HELM_STYLEELEMENT" idMethod="autoincrement"
d340 1
a340 1
  <table name="HELM_TASK" idMethod="autoincrement" javaName="Task">
d354 1
a354 1
  <table name="HELM_USER" idMethod="autoincrement" javaName="User">
a380 4
    <foreign-key foreignTable="DOMAIN_ID">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
    </foreign-key>

d385 4
d437 1
a437 1
  <table name="HELM_VC_MAP" idMethod="autoincrement" javaName="VCMap">
d449 1
a449 1
  <table name="HELM_VC_VIEW" idMethod="autoincrement" javaName="VCView">
@


1.2.2.8
log
@I assume that HELM_PROJECT_PROJECTGROUP's PROJECT_GROUP_ID references
HELM_PROJECT's PROJECT_ID table.
@
text
@d193 1
a193 1
        <reference local="PROJECT_GROUP_ID" foreign="PROJECT_ID"/>
@


1.2.2.9
log
@Corrected table names in HELM_ROLE_ACTION_RESOURCE foreign keys.
@
text
@d281 1
a281 1
    <foreign-key foreignTable="HELM_ACTION">
d284 1
a284 1
    <foreign-key foreignTable="HELM_RESOURCE">
@


1.2.2.10
log
@More foreign key table reference corrections.
@
text
@d319 1
a319 1
    <foreign-key foreignTable="HELM_STYLEELEMENT">
d354 1
a354 2

    <foreign-key foreignTable="HELM_USER">
d386 1
a386 1
    <foreign-key foreignTable="HELM_DOMAIN">
@


1.2.2.11
log
@DOMAIN_ID is only a foreign key of HELM_VC_VIEW, not a primary key as
well (I think).
@
text
@d458 1
a458 1
    <column name="DOMAIN_ID" type="INTEGER" required="true"/>
@


1.2.2.12
log
@* Added DENOTES_OWNER field to HELM_ROLE table.
* Corrected some default values for our boolean CHAR fields.
@
text
@d89 1
a89 2
    <column name="USE_INDEX" type="CHAR" size="1" required="true"
            default="N"/>
d101 1
a101 1
            default="N"/>
d126 1
a126 1
            default="N"/>
d167 1
a167 1
            default="N"/>
a262 2
    <column name="DENOTES_OWNER" type="CHAR" size="1" required="true"
            default="N"/>
d264 1
a264 1
            default="N"/>
@


1.2.2.13
log
@changed name of ProjectNews table
@
text
@d198 2
a199 2
  <table name="HELM_NEWSITEM" idMethod="autoincrement"
         javaName="NewsItem">
@


1.2.2.14
log
@Hopefully these are the right changes to make to get Project/UserGroup and its derivatives used in the peers.
@
text
@d95 1
a95 7
    <column name="TYPE" type="VARCHAR" size="8" required="true" default="base"
	 inheritance="single"/>
     <inheritance key="group" class="ProjectGroup"/>
     <inheritance key="category" class="Category"/ extends="ProjectGroup">
     <inheritance key="domain" class="DomainGroup" extends="ProjectGroup"/>
     <inheritance key="host" class="HostGroup" extends="ProjectGroup"/>
    </column>
a386 6
    <column name="TYPE" type="VARCHAR" size="6" required="true" default="base"
	 inheritance="single"/>
     <inheritance key="group" class="UserGroup"/>
     <inheritance key="domain" class="DomainGroup"/ extends="UserGroup">
     <inheritance key="host" class="HostGroup" extends="UserGroup"/>
    </column>
@


1.2.2.15
log
@changed SUGGESTED_BY TO PROPOSED_BY in all relevant tables

changed date fieldnames in HELM_PROJECTNEWS
@
text
@d137 1
a137 1
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
d143 1
a143 1
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
d171 1
a171 1
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
d183 1
a183 1
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
d214 2
a215 2
    <column name="PUBLISH_DATE" type="DATE"/>
    <column name="REMOVE_DATE" type="DATE"/>
d236 1
a236 1
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
d245 1
a245 1
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
@


1.2.2.16
log
@fixed syntax errors.
@
text
@d96 1
a96 1
	 inheritance="single">
d98 1
a98 1
     <inheritance key="category" class="Category" extends="ProjectGroup"/>
d394 1
a394 1
	 inheritance="single">
d396 1
a396 1
     <inheritance key="domain" class="DomainGroup" extends="UserGroup"/>
d399 1
@


1.2.2.17
log
@Renamed subclasses to avoid name collision as suggested by Leonard.
@
text
@d99 2
a100 2
     <inheritance key="domain" class="DomainProjectGroup" extends="ProjectGroup"/>
     <inheritance key="host" class="HostProjectGroup" extends="ProjectGroup"/>
@


1.2.2.18
log
@Renamed extension classes in HELM_USER.
@
text
@d396 2
a397 2
     <inheritance key="domain" class="DomainUserGroup" extends="UserGroup"/>
     <inheritance key="host" class="HostUserGroup" extends="UserGroup"/>
@


1.2.2.19
log
@The possibility of more than one entry of each type is desired.
@
text
@d43 3
@


1.2.2.20
log
@changed location field in HELM_PROJECTDOCUMENT to no longer be required
@
text
@d131 1
a131 1
    <column name="LOCATION" type="VARCHAR" size="128"/>
@


1.1
log
@Torque XML schema.
@
text
@d178 1
a178 1
         javaName="ProjectProject">
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 4
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE app-data SYSTEM
          "http://java.apache.org/turbine/dtd/database.dtd">

a15 3
    <!-- Possible values: 'Host', 'Domain', 'Project' -->
    <column name="TYPE" type="VARCHAR" size="7" default="Host"/>

d19 2
d28 3
d32 1
a32 2
    <column name="AFFECTED_TYPE" type="VARCHAR" size="7" required="true"
            default="Host"/>
d83 1
a83 2
    <column name="USE_INDEX" type="CHAR" size="1" required="true"
            default="N"/>
d88 1
a88 7
    <column name="TYPE" type="VARCHAR" size="8" required="true" default="base"
	 inheritance="single">
     <inheritance key="group" class="ProjectGroup"/>
     <inheritance key="category" class="Category" extends="ProjectGroup"/>
     <inheritance key="domain" class="DomainProjectGroup" extends="ProjectGroup"/>
     <inheritance key="host" class="HostProjectGroup" extends="ProjectGroup"/>
    </column>
d95 1
a95 1
            default="N"/>
d120 2
a121 2
            default="N"/>
    <column name="LOCATION" type="VARCHAR" size="128"/>
d124 1
a124 1
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
d130 1
a130 1
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
d137 1
a137 1
  <table name="HELM_PROJECT_DOCUMENT_SECTION" idMethod="none"
d158 1
a158 1
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
d161 1
a161 1
            default="N"/>
d170 1
a170 1
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
d177 2
a178 2
  <table name="HELM_PROJECT_PROJECTGROUP" idMethod="none"
         javaName="ProjectProjectgroup">
d187 1
a187 1
        <reference local="PROJECT_GROUP_ID" foreign="PROJECT_ID"/>
d191 2
a192 2
  <table name="HELM_NEWSITEM" idMethod="autoincrement"
         javaName="NewsItem">
d201 2
a202 2
    <column name="PUBLISH_DATE" type="DATE"/>
    <column name="REMOVE_DATE" type="DATE"/>
d223 1
a223 1
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
d232 1
a232 1
        <reference local="PROPOSED_BY" foreign="USER_ID"/>
d250 2
a251 3
    <column name="ROLE_ID" type="INTEGER" required="true" autoIncrement="true" 
            primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="99" required="true"/>
d253 1
a253 2
    <column name="TYPE" type="VARCHAR" size="7" required="true"
            default="Project"/>
a254 2
    <column name="DENOTES_OWNER" type="CHAR" size="1" required="true"
            default="N"/>
d256 1
a256 1
            default="N"/>
d263 2
a264 2
  <table name="HELM_ROLE_ACTION_RESOURCE" idMethod="none"
	javaName="RoleActionResource">
d273 1
a273 1
    <foreign-key foreignTable="HELM_ACTION">
d276 1
a276 1
    <foreign-key foreignTable="HELM_RESOURCE">
d282 1
a282 1
    <column name="SKIN_ID" type="INTEGER" required="true" autoIncrement="true"
d285 6
a290 2
    <column name="NAME" type="VARCHAR" size="127" required="true"/>
    <column name="RESOURCE" type="VARCHAR" size="255" required="true"/>
a294 4

    <unique>
      <unique-column name="NAME"/>
    </unique>
d297 1
a297 1
  <table name="HELM_SKIN_STYLE_ELEMENT_VALUE" idMethod="none"
d303 1
a303 1
    <column name="VALUE" type="VARCHAR" size="128" required="true"/>
d311 1
a311 1
    <foreign-key foreignTable="HELM_STYLEELEMENT">
d317 1
a317 1
    <column name="STYLE_ID" type="INTEGER" required="true" autoIncrement="true"
d319 2
a320 2
    <column name="NAME" type="VARCHAR" size="127" required="true"/>
    <column name="DESCRIPTION" type="VARCHAR" size="255" required="true"/>
d330 1
a330 1
            autoIncrement="true" primaryKey="true"/>
d338 1
a338 1
    <column name="TASK_ID" type="INTEGER" required="true" autoIncrement="true"
d346 1
a346 2

    <foreign-key foreignTable="HELM_USER">
d353 1
a353 1
            autoIncrement="true" primaryKey="true"/>
d375 2
a376 11
    <column name="TYPE" type="VARCHAR" size="6" required="true" default="base"
	 inheritance="single">
     <inheritance key="group" class="UserGroup"/>
     <inheritance key="domain" class="DomainUserGroup" extends="UserGroup"/>
     <inheritance key="host" class="HostUserGroup" extends="UserGroup"/>
    </column>
    <column name="PASSWORD_TICKET" type="VARCHAR" size="255"/>

    <foreign-key foreignTable="HELM_DOMAIN">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
    </foreign-key>
d382 4
d388 2
a389 1
  <table name="HELM_USER_USERGROUP" idMethod="none" javaName="UserUsergroup">
d402 1
a402 1
  <table name="HELM_USER_PROJECT_INTEREST" idMethod="none"
d414 2
a415 2
  <table name="HELM_USER_ROLE_PROJECT" idMethod="none" 
	javaName="UserRoleProject">
d450 1
a450 1
    <column name="DOMAIN_ID" type="INTEGER" required="true"/>
@


