1 line
11 KiB
XML
1 line
11 KiB
XML
|
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://jakarta.apache.org/turbine/dtd/database.dtd">
<database name="Roster"
defaultIdMethod="idbroker"
defaultJavaType="object"
defaultJavaNamingMethod="javaname"
package="org.thdl.roster.om">
<!--roster-members-->
<table name="Member">
<!--meta-->
<column name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="created_by" required="true" type="INTEGER"/>
<column name="modified_by" required="true" type="INTEGER"/>
<column name="created_on" required="true" type="TIMESTAMP"/>
<column name="modified_on" required="true" type="TIMESTAMP"/>
<column name="deleted" required="true" size="5" type="CHAR"/>
<!--children-->
<column name="contact_info_id" type="INTEGER"/>
<column name="research_interest_id" type="INTEGER"/>
<column name="publication_id" type="INTEGER"/>
<!--inheritance key DO NOT CHANGE COLUMN NAME!!!-->
<column name="member_type" inheritance="single" required="true" type="VARCHAR" size="24">
<inheritance key="person" class="Person" extends="org.thdl.roster.om.Member"/>
<inheritance key="project" class="Project" extends="org.thdl.roster.om.Member"/>
<inheritance key="organization" class="Organization" extends="org.thdl.roster.om.Member"/>
</column>
<column name="person_data_id" type="INTEGER"/>
<column name="project_data_id" type="INTEGER"/>
<column name="organization_data_id" type="INTEGER"/>
<foreign-key foreignTable="ContactInfo">
<reference local="contact_info_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="ResearchInterest">
<reference local="research_interest_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="Publication">
<reference local="publication_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="PersonData">
<reference local="person_data_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="ProjectData">
<reference local="project_data_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="OrganizationData">
<reference local="organization_data_id" foreign="id" />
</foreign-key>
</table>
<table name="PersonData" >
<column name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="thdl_user_id" required="true" type="INTEGER" description="Reference to external ThdlUsers Database"/>
<column name="firstname" type="LONGVARCHAR"/>
<column name="middlename" type="LONGVARCHAR"/>
<column name="lastname" type="LONGVARCHAR"/>
<column name="bio" type="CLOB"/>
<column name="history" type="CLOB"/>
<column name="parent_organization" type="LONGVARCHAR"/>
<column name="school" type="LONGVARCHAR"/>
<column name="department" type="LONGVARCHAR"/>
<column name="program" type="LONGVARCHAR"/>
<column name="advisor" type="LONGVARCHAR"/>
<column name="highest_degree" type="LONGVARCHAR"/>
<column name="year_began" type="INTEGER"/>
<column name="year_finished" type="INTEGER"/>
<column name="other_backgrounds" type="CLOB"/>
<column name="organization" type="LONGVARCHAR"/>
<column name="division" type="LONGVARCHAR"/>
<column name="title" type="LONGVARCHAR"/>
<column name="start_date" type="INTEGER"/>
<column name="job_description" type="CLOB"/>
</table>
<table name="ProjectData">
<column name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="name" type="LONGVARCHAR"/>
<column name="parent_organization" type="LONGVARCHAR"/>
<column name="divisions" type="LONGVARCHAR"/>
<column name="people" type="LONGVARCHAR"/>
<column name="mailing_list" type="LONGVARCHAR"/>
<column name="description" type="CLOB"/>
<column name="history" type="CLOB"/>
<column name="education_programs" type="CLOB"/>
<column name="resources" type="CLOB"/>
</table>
<table name="OrganizationData">
<column name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="name" type="LONGVARCHAR"/>
<column name="parent_organization" type="LONGVARCHAR"/>
<column name="divisions" type="LONGVARCHAR"/>
<column name="people" type="LONGVARCHAR"/>
<column name="mailing_list" type="LONGVARCHAR"/>
<column name="description" type="
|