head	1.42;
access;
symbols
	TIGRIS_1_1_0RC2:1.9.6.4.2.1
	TIGRIS_1_1_0RC1:1.9.6.4
	TIGRIS_1_1:1.9.6.4.0.2
	TIGRIS_1_0_8:1.9.6.3
	TIGRIS_1_0_8RC3:1.9.6.3
	TIGRIS_1_0_8RC2:1.9.6.3
	TIGRIS_1_0_8RC1:1.9.6.3
	TIGRIS_1_0_7:1.9.6.3
	TIGRIS_1_0_7RC3:1.9.6.2
	TIGRIS_1_0_7RC2:1.9.6.2
	TIGRIS_1_0_7RC1:1.9.6.2
	TIGRIS_1_0_6:1.9.6.3
	TIGRIS_1_0_6RC5:1.9.6.2
	TIGRIS_1_0_6RC4:1.9.6.2
	TIGRIS_1_0_6RC3:1.9.6.2
	TIGRIS_1_0_6RC2:1.9.6.2
	TIGRIS_1_0_6RC1:1.9.6.2
	TIGRIS_1_0_5:1.9.6.1
	TIGRIS_1_0_5RC6:1.9.6.1
	TIGRIS_1_0_5RC5:1.9.6.1
	TIGRIS_1_0_5RC4:1.9.6.1
	TIGRIS_1_0_5RC3:1.9.6.1
	TIGRIS_1_0_5RC2:1.9.6.1
	TIGRIS_1_0_5RC1:1.9
	TIGRIS_1_0_4:1.9
	TIGRIS_1_0_3:1.9
	TIGRIS_1_0_2:1.9
	TIGRIS_1_0_1:1.9
	TIGRIS_1_0:1.9.0.6
	TIGRIS_1_0_0:1.9
	TIGRIS_1_0_0_RC1:1.9.0.2;
locks; strict;
comment	@# @;


1.42
date	2001.08.29.19.46.17;	author leonardr;	state Exp;
branches;
next	1.41;

1.41
date	2001.08.29.19.42.49;	author leonardr;	state Exp;
branches;
next	1.40;

1.40
date	2001.08.14.22.49.14;	author leonardr;	state Exp;
branches;
next	1.39;

1.39
date	2001.08.11.09.08.12;	author dlr;	state Exp;
branches;
next	1.38;

1.38
date	2001.08.03.02.39.19;	author dlr;	state Exp;
branches;
next	1.37;

1.37
date	2001.07.30.18.04.14;	author dlr;	state Exp;
branches;
next	1.36;

1.36
date	2001.07.27.02.46.21;	author dlr;	state Exp;
branches;
next	1.35;

1.35
date	2001.07.27.00.29.31;	author jrobbins;	state Exp;
branches;
next	1.34;

1.34
date	2001.07.25.19.39.27;	author leonardr;	state Exp;
branches;
next	1.33;

1.33
date	2001.07.16.02.36.42;	author jrobbins;	state Exp;
branches;
next	1.32;

1.32
date	2001.07.07.02.06.51;	author edk;	state Exp;
branches;
next	1.31;

1.31
date	2001.07.05.22.21.40;	author leonardr;	state Exp;
branches;
next	1.30;

1.30
date	2001.07.02.18.56.43;	author leonardr;	state Exp;
branches;
next	1.29;

1.29
date	2001.06.19.23.27.27;	author dlr;	state Exp;
branches;
next	1.28;

1.28
date	2001.06.18.22.12.22;	author leonardr;	state Exp;
branches;
next	1.27;

1.27
date	2001.06.13.21.26.46;	author elicia;	state Exp;
branches;
next	1.26;

1.26
date	2001.06.02.01.20.17;	author elicia;	state Exp;
branches;
next	1.25;

1.25
date	2001.05.31.21.06.28;	author leonardr;	state Exp;
branches;
next	1.24;

1.24
date	2001.05.31.18.54.51;	author elicia;	state Exp;
branches;
next	1.23;

1.23
date	2001.05.30.01.11.12;	author leonardr;	state Exp;
branches;
next	1.22;

1.22
date	2001.05.25.01.45.29;	author leonardr;	state Exp;
branches;
next	1.21;

1.21
date	2001.05.18.16.49.06;	author leonardr;	state Exp;
branches;
next	1.20;

1.20
date	2001.05.18.16.45.15;	author leonardr;	state Exp;
branches;
next	1.19;

1.19
date	2001.05.18.00.38.18;	author leonardr;	state Exp;
branches;
next	1.18;

1.18
date	2001.05.16.18.49.20;	author leonardr;	state Exp;
branches;
next	1.17;

1.17
date	2001.05.11.19.38.56;	author leonardr;	state Exp;
branches;
next	1.16;

1.16
date	2001.05.02.07.22.30;	author dlr;	state Exp;
branches;
next	1.15;

1.15
date	2001.05.02.06.45.03;	author dlr;	state Exp;
branches;
next	1.14;

1.14
date	2001.05.01.21.47.22;	author leonardr;	state Exp;
branches;
next	1.13;

1.13
date	2001.04.27.22.00.52;	author leonardr;	state Exp;
branches;
next	1.12;

1.12
date	2001.04.16.20.50.29;	author leonardr;	state Exp;
branches;
next	1.11;

1.11
date	2001.04.12.03.03.29;	author elicia;	state Exp;
branches;
next	1.10;

1.10
date	2001.04.11.23.38.18;	author elicia;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.20.02.19.04;	author leonardr;	state Exp;
branches
	1.9.6.1;
next	1.8;

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

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

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

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

1.4
date	2001.03.07.02.38.28;	author leonardr;	state Exp;
branches;
next	1.3;

1.3
date	2001.03.07.02.31.21;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.07.02.21.55;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.27.01.45.45;	author lucas;	state Exp;
branches;
next	;

1.9.6.1
date	2001.05.17.17.51.26;	author edk;	state Exp;
branches;
next	1.9.6.2;

1.9.6.2
date	2001.06.01.19.18.08;	author leonardr;	state Exp;
branches;
next	1.9.6.3;

1.9.6.3
date	2001.07.07.02.05.10;	author edk;	state Exp;
branches;
next	1.9.6.4;

1.9.6.4
date	2001.07.26.21.17.47;	author jrobbins;	state Exp;
branches
	1.9.6.4.2.1;
next	;

1.9.6.4.2.1
date	2001.08.07.20.35.43;	author edk;	state Exp;
branches;
next	;


desc
@@


1.42
log
@It was not my intention to remove this table.
@
text
@<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE app-data SYSTEM "../sql/dtd/database.dtd">

<!-- ==================================================================== -->
<!--                                                                      -->
<!-- H E L M  P R O J E C T  S C H E M A                                  -->
<!--                                                                      -->
<!-- ==================================================================== -->

<app-data>
<database baseClass="org.tigris.helm.om.HelmObject" 
	  basePeer="org.tigris.helm.om.HelmPeer">

  <table name="HELM_ACTION" idMethod="native" 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"/>
    <column name="TAKES_RESOURCE" type="CHAR" size="1" required="true" 
	    default="N"/>
    <column name="AFFECTED_BY_PROJECT_LOCK" type="CHAR" size="1" 
	    required="true" default="N"/>
    <unique>
      <unique-column name="NAME"/>
    </unique>
  </table>

  <table name="HELM_ATTRIBUTE" idMethod="native"
         javaName="Attribute">
    <column name="ATTRIBUTE_ID" type="INTEGER" required="true" 
        autoIncrement="true" primaryKey="true"/>
    <column name="TYPE_ID" type="INTEGER" required="true"/>
    <!-- Possible values: 'Host', 'Domain', 'Project', 'Role' -->
    <column name="ENTITY_TYPE" type="VARCHAR" size="64" required="true"
            inheritance="single">
      <inheritance key="Host" class="HostAttribute" extends="Attribute"/>
      <inheritance key="Domain" class="DomainAttribute" extends="Attribute"/>
      <inheritance key="Project" class="ProjectAttribute" extends="Attribute"/>
      <inheritance key="Role" class="RoleAttribute" extends="Attribute"/>
    </column>
    <column name="NAME" type="VARCHAR" size="128" required="true"/>
    <column name="DEFAULT_VALUE" type="LONGVARCHAR" default=""
            required="true"/>
    <column name="DESCRIPTION" type="LONGVARCHAR" default=""/>

    <foreign-key foreignTable="HELM_ATTRIBUTE_TYPE">
        <reference local="TYPE_ID" foreign="ATTRIBUTE_TYPE_ID"/>
    </foreign-key>

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

  <table name="HELM_ATTRIBUTE_TYPE" idMethod="native" 
         javaName="AttributeType">
    <column name="ATTRIBUTE_TYPE_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="99" required="true"/>

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

  <table name="HELM_ATTRIBUTE_VALUE" javaName="AttributeValue" idMethod="none">
    <column name="ENTITY_ID" type="INTEGER" required="true"
	    primaryKey="true"/>
    <column name="ATTRIBUTE_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <column name="VALUE" type="LONGVARCHAR" default="" required="true"/>

    <foreign-key foreignTable="HELM_ATTRIBUTE">
        <reference local="ATTRIBUTE_ID" foreign="ATTRIBUTE_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_AUDIT_LOG_ENTRY" idMethod="native"
         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_INVITATION" idMethod="native" 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_LICENSE" javaName="License" idMethod="native">
    <column name="LICENSE_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true"/>
    <column name="NAME" type="VARCHAR" size="255" required="true"/>
    <column name="DESCRIPTION" type="LONGVARCHAR"/>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_LOGFILE" javaName="LogFile" idMethod="native">
    <column name="LOGFILE_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PATH" type="VARCHAR" size="255" required="true"/>
  </table>

  <table name="HELM_MAILINGLIST" idMethod="native"
         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_MESSAGE" javaName="Message" idMethod="none">
    <column name="MESSAGE_ID" type="VARCHAR" size="4" required="true"
	 primaryKey="true"/>
    <column name="MESSAGE_TEXT" type="VARCHAR" size="150"/>
  </table>

  <table name="HELM_NEWSITEM" idMethod="native"  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="LONGVARCHAR" 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"/>
   <column name="IMAGE_URL" type="VARCHAR" size="128"/>
   <column name="ORIGINAL_ARTICLE_URL" type="VARCHAR" size="128"/>
   <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" idMethod="native" javaName="Project">
    <column name="PROJECT_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="NAME" type="VARCHAR" size="64" required="true" default=""/>
    <column name="LICENSE_ID" type="INTEGER" default="NULL"/>
    <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', 'category', 'group', 'domain', 'host' -->
    <column name="TYPE" type="VARCHAR" size="8" required="true" default="base"
            inheritance="single">
      <inheritance key="base" class="Project"/>
      <inheritance key="category" class="Category" extends="ProjectGroup"/>
      <inheritance key="group" class="ProjectGroup" extends="Project"/>
      <inheritance key="domain" class="Domain" extends="ProjectGroup"/>
      <inheritance key="host" class="Host" extends="Domain"/>
    </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="IS_PUBLIC" type="CHAR" size="1" required="true"
            default="Y"/>
    <column name="LOCKED" type="CHAR" size="1" required="true"
            default="N"/>

    <foreign-key foreignTable="HELM_LICENSE">
        <reference local="LICENSE_ID" foreign="LICENSE_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_RESOURCE" idMethod="native" javaName="Resource">
    <column name="RESOURCE_ID" type="INTEGER" required="true"
            autoIncrement="true" primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="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>

    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

  <table name="HELM_ROLE" idMethod="native" javaName="Role">
    <column name="ROLE_ID" type="INTEGER" required="true" autoIncrement="true" 
            primaryKey="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="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"/>

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

    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PROJECT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </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_TASK" idMethod="native" 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="native" 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', 'deleted' -->
    <column name="TYPE" type="VARCHAR" size="7" 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_PROJECT">
        <reference local="DOMAIN_ID" foreign="PROJECT_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>

</database>
</app-data>
@


1.41
log
@Moved integration-oriented code into new component package.
@
text
@d146 26
@


1.40
log
@Added log view capability.
@
text
@a202 26
  <table name="HELM_NEWSITEM" idMethod="native"
         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="LONGVARCHAR" 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"/>
    <column name="IMAGE_URL" type="VARCHAR" size="128"/>
    <column name="ORIGINAL_ARTICLE_URL" type="VARCHAR" size="128"/>
    <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>

@


1.39
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@d108 1
a108 1
  <table name="HELM_LICENSE" javaName="License" idMethod="none">
d117 6
@


1.38
log
@HELM_CLUSTER_EVENT table deprecated by Spread.
@
text
@d2 1
a2 3
<!DOCTYPE app-data SYSTEM
           "../sql/dtd/org/apache/turbine/torque/engine/database/transform/database.dtd">
           <!-- was http://jakarta.apache.org/turbine/dtd/database.dtd -->   
d14 1
a14 1
  <table name="HELM_ACTION" idMethod="autoincrement" javaName="Action">
d29 1
a29 1
  <table name="HELM_ATTRIBUTE" idMethod="autoincrement"
d57 1
a57 1
  <table name="HELM_ATTRIBUTE_TYPE" idMethod="autoincrement" 
d80 1
a80 1
  <table name="HELM_AUDIT_LOG_ENTRY" idMethod="autoincrement"
d97 1
a97 1
  <table name="HELM_INVITATION" idMethod="autoincrement" javaName="Invitation">
d119 1
a119 1
  <table name="HELM_MAILINGLIST" idMethod="autoincrement"
d140 1
a140 1
  <table name="HELM_PROJECT" idMethod="autoincrement" javaName="Project">
d197 1
a197 1
  <table name="HELM_NEWSITEM" idMethod="autoincrement"
d223 1
a223 1
  <table name="HELM_RESOURCE" idMethod="autoincrement" javaName="Resource">
d239 1
a239 1
  <table name="HELM_ROLE" idMethod="autoincrement" javaName="Role">
d276 1
a276 1
  <table name="HELM_TASK" idMethod="autoincrement" javaName="Task">
d291 1
a291 1
  <table name="HELM_USER" idMethod="autoincrement" javaName="User">
@


1.37
log
@Reverting last change which turned out to be too bleeding edge for the
version of Torque which we're currently running.  It will be
re-instituted later.
@
text
@a98 8
  <table name="HELM_CLUSTER_EVENT" javaName="ClusterEvent" idMethod="none">
    <column name="TYPE" type="VARCHAR" size="100" required="true"
	 primaryKey="true"/>
    <column name="DESCRIPTOR" type="VARCHAR" size="100" required="true"
	 primaryKey="true"/>
    <column name="STAMP" type="TIMESTAMP"/>
  </table>

@


1.36
log
@Replaced deprecated idMethod="autoincrement" with idMethod="native".
@
text
@d16 1
a16 1
  <table name="HELM_ACTION" idMethod="native" javaName="Action">
d31 1
a31 1
  <table name="HELM_ATTRIBUTE" idMethod="native"
d59 1
a59 1
  <table name="HELM_ATTRIBUTE_TYPE" idMethod="native" 
d82 1
a82 1
  <table name="HELM_AUDIT_LOG_ENTRY" idMethod="native"
d107 1
a107 1
  <table name="HELM_INVITATION" idMethod="native" javaName="Invitation">
d129 1
a129 1
  <table name="HELM_MAILINGLIST" idMethod="native"
d150 1
a150 1
  <table name="HELM_PROJECT" idMethod="native" javaName="Project">
d207 1
a207 1
  <table name="HELM_NEWSITEM" idMethod="native"
d233 1
a233 1
  <table name="HELM_RESOURCE" idMethod="native" javaName="Resource">
d249 1
a249 1
  <table name="HELM_ROLE" idMethod="native" javaName="Role">
d286 1
a286 1
  <table name="HELM_TASK" idMethod="native" javaName="Task">
d301 1
a301 1
  <table name="HELM_USER" idMethod="native" javaName="User">
@


1.35
log
@using local dtd allows builds on machines without network connectivity.
@
text
@d16 1
a16 1
  <table name="HELM_ACTION" idMethod="autoincrement" javaName="Action">
d31 1
a31 1
  <table name="HELM_ATTRIBUTE" idMethod="autoincrement"
d59 1
a59 1
  <table name="HELM_ATTRIBUTE_TYPE" idMethod="autoincrement" 
d82 1
a82 1
  <table name="HELM_AUDIT_LOG_ENTRY" idMethod="autoincrement"
d107 1
a107 1
  <table name="HELM_INVITATION" idMethod="autoincrement" javaName="Invitation">
d129 1
a129 1
  <table name="HELM_MAILINGLIST" idMethod="autoincrement"
d150 1
a150 1
  <table name="HELM_PROJECT" idMethod="autoincrement" javaName="Project">
d207 1
a207 1
  <table name="HELM_NEWSITEM" idMethod="autoincrement"
d233 1
a233 1
  <table name="HELM_RESOURCE" idMethod="autoincrement" javaName="Resource">
d249 1
a249 1
  <table name="HELM_ROLE" idMethod="autoincrement" javaName="Role">
d286 1
a286 1
  <table name="HELM_TASK" idMethod="autoincrement" javaName="Task">
d301 1
a301 1
  <table name="HELM_USER" idMethod="autoincrement" javaName="User">
@


1.34
log
@User deletes are now soft deletes which change the user type to 'deleted' (a minimal type of user which has user information but is not allowed associations with roles or user groups). Includes some other miscellaneous bug fixes.
@
text
@d3 2
a4 1
          "http://jakarta.apache.org/turbine/dtd/database.dtd">
@


1.33
log
@factored out project documents related tables to nidaba.tigris.org
@
text
@d323 2
a324 2
    <!-- Possible values: ('base', 'nobody', 'host', 'domain', 'group' -->
    <column name="TYPE" type="VARCHAR" size="6" required="true" default="base"
@


1.32
log
@use jakarta.apache.org rather than java.apache.org
@
text
@a190 48
  <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="STATUS" type="LONGVARCHAR" default=""/>
    <column name="DESCRIPTION" type="LONGVARCHAR" default=""/>
    <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="CREATED_DATE" type="DATE"/>
    <column name="MODIFIED_DATE" type="DATE"/>
    <column name="LOCATION" type="VARCHAR" size="128"/>
    <column name="URL" type="VARCHAR" size="128"/>
    <column name="TEXT" type="LONGVARCHAR" default=""/>
    <column name="PROPOSED_BY" type="INTEGER" required="true"/>
    <column name="APPROVED_BY" type="INTEGER"/>
    <column name="MODIFIED_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>
    <foreign-key foreignTable="HELM_USER">
        <reference local="MODIFIED_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>

a220 24
    <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>
@


1.31
log
@Licenses are now contained in a database-managed table rather than in a custom Java class (yay!)
@
text
@d3 1
a3 1
          "http://java.apache.org/turbine/dtd/database.dtd">
@


1.30
log
@Implemented project-scoped roles.
@
text
@d117 11
d153 1
a153 1
    <column name="LICENSE" type="VARCHAR" size="64"/>
d178 4
d188 1
@


1.29
log
@Removing unused tables.  A CollabNet-proprietary project exists for
this functionality which is being worked on in conjunction with
existing customers.
@
text
@d291 1
d294 1
d298 4
d307 1
d317 4
@


1.28
log
@Huge patch of the day: Got rid of redundant HELM_DOMAIN table. The project representation of the domain and the host is now the canonical one. Host and Domain now subclass ProjectGroup. The canonical representation of a project's membership in a domain group is now the corresponding mapping in HELM_PROJECT_PROJECTGROUP. Schema changes: No more HELM_DOMAIN table (obviously); no more DOMAIN_ID in HELM_PROJECT; HELM_USER and HELM_VC_VIEW now have foreign keys in HELM_PROJECT instead of HELM_DOMAIN.
@
text
@a431 22
  <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_PROJECT">
        <reference local="DOMAIN_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

@


1.27
log
@removed HELM_PROJECTDOWNLOAD table (replaced by HELM_PROJECTDOCUMENT)
@
text
@a105 9
  <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>

a140 1
    <column name="DOMAIN_ID" type="INTEGER" required="true"/>
d150 1
a150 1
    <!-- Possible values: 'base', 'group', 'category', 'domain', 'host' -->
d153 1
a153 1
      <inheritance key="group" class="ProjectGroup"/>
d155 3
a157 3
      <inheritance key="domain" class="DomainProjectGroup" 
                   extends="ProjectGroup"/>
      <inheritance key="host" class="HostProjectGroup" extends="ProjectGroup"/>
a166 3
    <foreign-key foreignTable="HELM_DOMAIN">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
    </foreign-key>
d377 2
a378 2
    <foreign-key foreignTable="HELM_DOMAIN">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
d449 2
a450 2
    <foreign-key foreignTable="HELM_DOMAIN">
        <reference local="DOMAIN_ID" foreign="DOMAIN_ID"/>
@


1.26
log
@added imageURL and original article URL fields to HELM_NEWSITEM
@
text
@a235 25
  <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>
@


1.25
log
@Moved table definition into alphabetical order.
@
text
@d289 2
@


1.24
log
@removed "type" field. added Modified_Date, Modified_By. Changed Uploaded_date to Created_Date.
@
text
@d98 8
a378 8
  </table>

  <table name="HELM_CLUSTER_EVENT" javaName="ClusterEvent" idMethod="none">
    <column name="TYPE" type="VARCHAR" size="100" required="true"
	 primaryKey="true"/>
    <column name="DESCRIPTOR" type="VARCHAR" size="100" required="true"
	 primaryKey="true"/>
    <column name="STAMP" type="TIMESTAMP"/>
@


1.23
log
@Got rid of denormalized project-project group mapping table in favor of per-JVM caching solution.
@
text
@d186 1
a187 1
    <column name="TYPE" type="VARCHAR" size="128" required="true"/>
d189 1
a189 2
    <column name="IS_PUBLIC" type="CHAR" size="1" required="true"
            default="N"/>
d192 2
a193 1
    <column name="UPLOADED_DATE" type="DATE"/>
d199 1
d208 3
@


1.22
log
@Finally got rid of REQUESTABLE and DENOTES_OWNER fields in HELM_ROLE.
@
text
@a263 17
  <table name="HELM_DENORMALIZED_PROJECT_PROJECTGROUP" idMethod="none"
         javaName="DenormalizedProjectProjectgroup">
    <column name="PARENT_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <column name="CHILD_ID" type="INTEGER" required="true"
            primaryKey="true"/>
    <column name="PUBLIC_PATH" type="CHAR" size="1" required="true"
            default="Y"/>

    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="PARENT_ID" foreign="PROJECT_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_PROJECT">
        <reference local="CHILD_ID" foreign="PROJECT_ID"/>
    </foreign-key>
  </table>

@


1.21
log
@Changed field name to avoid using reserved word.
@
text
@a346 4
    <column name="DENOTES_OWNER" type="CHAR" size="1" required="true"
            default="N"/>
    <column name="REQUESTABLE" type="CHAR" size="1" required="true"
            default="N"/>
@


1.20
log
@Changed timestamp table to cluster event table.
@
text
@d393 1
a393 1
    <column name="KEY" type="VARCHAR" size="100" required="true"
@


1.19
log
@New table to be used in handling cross-JVM communication without the use of RMI.
@
text
@d390 1
a390 1
  <table name="HELM_TIMESTAMP" javaName="Timestamp" idMethod="none">
@


1.18
log
@Added idMethods for tables that didn't have ones specified.
@
text
@d390 8
@


1.17
log
@A Heartbreaking Patch of Staggering Genius: adds capacity (but no interface) for deeply nested projects, categories, and project groups. As a side effect, gets rid of the hacky special 'all public projects in domain' group. There are probably bugs in this, and some of those bugs are probably security holes, so watch out.
@
text
@d69 1
a69 1
  <table name="HELM_ATTRIBUTE_VALUE" javaName="AttributeValue">
d133 1
a133 1
  <table name="HELM_MESSAGE" javaName="Message">
@


1.16
log
@Since entries in the HELM_ATTRIBUTE_VALUE join table are worthless
without being joined to HELM_ATTRIBUTE, we make use of the ENTITY_TYPE
in HELM_ATTRIBUTE instead of also keeping one in HELM_ATTRIBUTE_VALUE.
@
text
@d264 17
@


1.15
log
@Role-specific Attribute tables refactored to be more general purpose.
@
text
@a73 12
    <!-- Possible values: 'Host', 'Domain', 'Project', 'Role' -->
    <column name="ENTITY_TYPE" type="VARCHAR" size="64" required="true"
            inheritance="single">
      <inheritance key="Host" class="HostAttributeValue"
                   extends="AttributeValue"/>
      <inheritance key="Domain" class="DomainAttributeValue"
                   extends="AttributeValue"/>
      <inheritance key="Project" class="ProjectAttributeValue"
                   extends="AttributeValue"/>
      <inheritance key="Role" class="RoleAttributeValue"
                   extends="AttributeValue"/>
    </column>
@


1.14
log
@Big architecture and schema change: booleans in the HELM_ROLE table have been replaced by entries in the HELM_ROLE_ATTRIBUTE_VALUE table. Also, a new attribute has been added which controls which roles a user gets upon creation of a project.
@
text
@d30 28
d63 1
d69 24
d106 1
a106 1
        <reference local="INITIATING_USER" foreign="USER_ID"/>
d164 1
a164 1
    <!-- Possible values:'base', 'group', 'category', 'domain', 'host'  -->
d166 6
a171 5
	 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"/>
a349 33
  </table>

  <table name="HELM_ROLE_ATTRIBUTE" idMethod="autoincrement"
	javaName="RoleAttribute">
    <column name="ATTRIBUTE_ID" type="INTEGER" required="true" 
        autoIncrement="true" primaryKey="true"/>
    <column name="TYPE" type="INTEGER" required="true"/>
    <column name="NAME" type="VARCHAR" size="128" required="true"/>
    <column name="DEFAULT_VALUE" type="LONGVARCHAR" required="true"/>
    <column name="DESCRIPTION" type="LONGVARCHAR" default=""/>

    <foreign-key foreignTable="HELM_ATTRIBUTE_TYPE">
        <reference local="TYPE" foreign="ATTRIBUTE_TYPE_ID"/>
    </foreign-key>

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

  <table name="HELM_ROLE_ATTRIBUTE_VALUE" javaName="RoleAttributeValue">
    <column name="ROLE_ID" type="INTEGER" required="true"
	 primaryKey="true"/>
    <column name="ATTRIBUTE_ID" type="INTEGER" required="true"
	 primaryKey="true"/>
    <column name="VALUE" type="LONGVARCHAR" required="true"/>

    <foreign-key foreignTable="HELM_ROLE">
        <reference local="ROLE_ID" foreign="ROLE_ID"/>
    </foreign-key>
    <foreign-key foreignTable="HELM_ROLE_ATTRIBUTE">
        <reference local="ATTRIBUTE_ID" foreign="ATTRIBUTE_ID"/>
    </foreign-key>
@


1.13
log
@New field: is_public.
@
text
@d30 10
d296 33
@


1.12
log
@Added Helm/Torque capability equivalent to Joist's Message capability.
@
text
@d113 2
a114 2
    <column name="IS_PROPRIETARY" type="CHAR" size="1" required="true"
            default="N"/>
@


1.11
log
@changed HELM_NEWSITEM.headline to LONGVARCHAR
@
text
@d82 6
@


1.10
log
@changed the text field into type longtext, in the HELM_PROJECTDOCUMENT table
@
text
@d212 1
a212 1
    <column name="HEADLINE" type="VARCHAR" size="128" required="true"/>
@


1.9
log
@Got rid of definition for test table.
@
text
@d138 1
a138 1
    <column name="TEXT" type="VARCHAR" size="255"/>
@


1.9.6.1
log
@porting change to fix HELM_PROJECTDOCUMENT schema so that long text
documents aren't truncated
@
text
@d138 1
a138 1
    <column name="TEXT" type="LONGVARCHAR" default=""/>
@


1.9.6.2
log
@Ported minimal cluster functionality so that I could also port IssueTrackingRebuildService, which builds on it.
@
text
@a46 8
  <table name="HELM_CLUSTER_EVENT" javaName="ClusterEvent" idMethod="none">
    <column name="TYPE" type="VARCHAR" size="100" required="true"
	 primaryKey="true"/>
    <column name="DESCRIPTOR" type="VARCHAR" size="100" required="true"
	 primaryKey="true"/>
    <column name="STAMP" type="TIMESTAMP"/>
  </table>

@


1.9.6.3
log
@java.apache.org doesn't seem to work right now ... that may be permanent.
but jakarta seems to work, and it should continue to do so.
@
text
@d3 1
a3 1
          "http://jakarta.apache.org/turbine/dtd/database.dtd">
@


1.9.6.4
log
@using local dtd allows builds on machines without network connectivity.
@
text
@d3 1
a3 2
          "../sql/dtd/org/apache/turbine/torque/engine/database/transform/database.dtd">
          <!-- was http://jakarta.apache.org/turbine/dtd/database.dtd -->   
@


1.9.6.4.2.1
log
@project documents should default to being public (since private project
documents aren't yet supported in 1.0.x / 1.1.0)
@
text
@d141 1
a141 1
            default="Y"/>
@


1.8
log
@New table for speedy ACL lookups.
@
text
@a368 25
  <table name="HELM_USER_PROJECT_ACTION_RESOURCE" idMethod="none" javaName="UserProjectActionResource">
    <column name="USER_LOGIN_NAME" type="VARCHAR" size="32" required="true"/>
    <column name="USER_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="PROJECT_NAME" type="VARCHAR" size="64" required="true"/>
    <column name="PROJECT_ID" type="INTEGER" required="true" primaryKey="true"/>
    <column name="ACTION_NAME" type="VARCHAR" size="99" primaryKey="true" required="true"/>
    <column name="RESOURCE_PATTERN" type="VARCHAR" size="99" primaryKey="true" required="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>

    <foreign-key foreignTable="HELM_ACTION">
        <reference local="ACTION_NAME" foreign="NAME"/>
    </foreign-key>

    <foreign-key foreignTable="HELM_RESOURCE">
        <reference local="RESOURCE_PATTERN" foreign="PATTERN"/>
    </foreign-key>
  </table>

@


1.7
log
@Got rid of all references to skins; they'll reappear in some form later on.
@
text
@d359 1
a359 2
    <column name="USER_GROUP_ID" type="INTEGER" required="true"
            primaryKey="true"/>
d366 25
@


1.6
log
@* Removed description that didn't fully explain the scope of this
file.
@
text
@a106 1
    <column name="SKIN_ID" type="INTEGER"/>
a119 3
    <foreign-key foreignTable="HELM_SKIN">
        <reference local="SKIN_ID" foreign="SKIN_ID"/>
    </foreign-key>
a297 56
  </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"/>
@


1.5
log
@Project enable/disable is now referred to as project lock.
@
text
@a9 2
<!-- Defines the Helm database schema.                                    -->
<!-- ==================================================================== -->
@


1.4
log
@Added missing sizes.
@
text
@d25 1
a25 1
    <column name="AFFECTED_BY_PROJECT_DISABLE" type="CHAR" size = "1" 
d112 2
a113 2
    <column name="ENABLED" type="CHAR" size="1" required="true"
            default="Y"/>
@


1.3
log
@Corrected classpath.
@
text
@d23 1
a23 3
    <column name="TAKES_RESOURCE" type="CHAR" required="true" 
	    default="N"/>
    <column name="AFFECTED_BY_PROJECT_DISABLE" type="CHAR" required="true" 
d25 2
@


1.2
log
@Added some flags neccessary for work I'll be doing over the next few days
@
text
@d15 1
a15 1
	  basePeer="org.tigris.helm.om.peer.HelmPeer">
@


1.1
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
@d14 2
a15 1
<database>
d23 4
a26 1

d112 2
@

