| <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <!-- ==================================================================== --> |
| <!-- --> |
| <!-- F U L C R U M B A S I C S E C U R I T Y S C H E M A --> |
| <!-- --> |
| <!-- ==================================================================== --> |
| <!-- @author: <a href="mailto:tv@apache.org">Thomas Vandahl</a> --> |
| <!-- @version $Id$ --> |
| <!-- ==================================================================== --> |
| <database name="fulcrum" |
| defaultIdMethod="none" |
| xmlns="http://db.apache.org/torque/5.0/templates/database" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://db.apache.org/torque/5.0/templates/database |
| http://db.apache.org/torque/torque-5.0/documentation/orm-reference/database-5-0.xsd"> |
| |
| <table name="FULCRUM_BASIC_GROUP" javaName="TorqueBasicGroup" idMethod="idbroker" |
| baseClass="org.apache.fulcrum.security.torque.basic.TorqueAbstractBasicGroup"> |
| <column name="GROUP_ID" required="true" primaryKey="true" type="INTEGER" javaName="EntityId" javaType="object"/> |
| <column name="GROUP_NAME" required="true" type="VARCHAR" size="64" javaName="EntityName"/> |
| |
| <unique> |
| <unique-column name="GROUP_NAME"/> |
| </unique> |
| |
| </table> |
| |
| <table name="FULCRUM_BASIC_USER" javaName="TorqueBasicUser" idMethod="idbroker" |
| baseClass="org.apache.fulcrum.security.torque.basic.TorqueAbstractBasicUser"> |
| <column name="USER_ID" required="true" primaryKey="true" type="INTEGER" javaName="EntityId" javaType="object"/> |
| <column name="LOGIN_NAME" required="true" size="64" type="VARCHAR" javaName="EntityName"/> |
| <column name="PASSWORD_VALUE" required="true" size="16" type="VARCHAR" javaName="Password"/> |
| <!-- |
| <column name="FIRST_NAME" required="true" size="64" type="VARCHAR"/> |
| <column name="LAST_NAME" required="true" size="64" type="VARCHAR"/> |
| <column name="EMAIL" size="64" type="VARCHAR"/> |
| <column name="CONFIRM_VALUE" size="16" type="VARCHAR" javaName="Confirmed"/> |
| <column name="MODIFIED" type="TIMESTAMP"/> |
| <column name="CREATED" type="TIMESTAMP" javaName="CreateDate"/> |
| <column name="LAST_LOGIN" type="TIMESTAMP"/> |
| <column name="OBJECTDATA" type="VARBINARY"/> |
| --> |
| <unique> |
| <unique-column name="LOGIN_NAME"/> |
| </unique> |
| |
| </table> |
| |
| <!-- Basic Security Model --> |
| <table name="FULCRUM_BASIC_USER_GROUP" javaName="TorqueBasicUserGroup"> |
| <column name="USER_ID" required="true" primaryKey="true" type="INTEGER" javaType="object"/> |
| <column name="GROUP_ID" required="true" primaryKey="true" type="INTEGER" javaType="object"/> |
| |
| <foreign-key foreignTable="FULCRUM_BASIC_USER"> |
| <reference local="USER_ID" foreign="USER_ID"/> |
| </foreign-key> |
| |
| <foreign-key foreignTable="FULCRUM_BASIC_GROUP"> |
| <reference local="GROUP_ID" foreign="GROUP_ID"/> |
| </foreign-key> |
| </table> |
| |
| </database> |