| <?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. |
| --> |
| |
| <!-- ============================================================================== --> |
| <!-- --> |
| <!-- Database Definition for the Application --> |
| <!-- --> |
| <!-- @version $Id: application-schema.xml --> |
| <!-- --> |
| <!-- ============================================================================== --> |
| |
| <database 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 |
| https://db.apache.org/torque/xsd/database-5-0-strict.xsd" |
| name="${turbine_database_name}" |
| defaultIdMethod="native"> |
| |
| |
| <!-- Simple author/book database example --> |
| <table name="AUTHOR" idMethod="idbroker"> |
| <column name="AUTH_ID" required="true" primaryKey="true" type="INTEGER" /> |
| <column name="FIRST_NAME" required="true" size="64" type="VARCHAR" /> |
| <column name="LAST_NAME" required="true" size="64" type="VARCHAR" /> |
| </table> |
| |
| <table name="BOOK" idMethod="idbroker"> |
| <column name="BOOK_ID" required="true" primaryKey="true" type="INTEGER" /> |
| <column name="AUTH_ID" required="true" type="INTEGER" /> |
| <column name="TITLE" required="true" size="64" type="VARCHAR" /> |
| <column name="SUBJECT" required="true" size="64" type="VARCHAR" /> |
| <foreign-key foreignTable="AUTHOR"> |
| <reference local="AUTH_ID" foreign="AUTH_ID"></reference> |
| </foreign-key> |
| </table> |
| </database> |