Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 189 lines (167 sloc) 7.09 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
<!--
    Propel XML database schema DTD
    $Id: database.dtd,v 1.7 2005/03/30 11:38:18 hlellelid Exp $

    This is based very closely on the schema DTD for Torque, but
    some differences do exist.
-->

        <!--

        defaultPhpNamingMethod determines how a table or column name,
        from the name attribute in the xml database file, is converted to a
        PHP class or method name.

             nochange - indicates not change is performed.
             underscore - Underscores are removed, First letter is
                      capitalized, first letter after an underscore
                      is capitalized, the rest of the letters are
                      converted to lowercase.
             phpname - same as underscore, but no letters are converted
                      to lowercase.
        -->

        <!ELEMENT database (external-schema*, table+, behavior*)>
        <!ATTLIST database
                name CDATA #IMPLIED
                defaultIdMethod (native|none) "none"
                defaultTranslateMethode CDATA #IMPLIED
                package CDATA #IMPLIED
                schema CDATA #IMPLIED
                namespace CDATA #IMPLIED
                baseClass CDATA #IMPLIED
                basePeer CDATA #IMPLIED
                defaultPhpNamingMethod (nochange|underscore|phpname) "underscore"
                heavyIndexing (true|false) "false"
                tablePrefix CDATA #IMPLIED
                defaultStringFormat CDATA #IMPLIED
                xmlns:xsi CDATA #IMPLIED
                xsi:noNamespaceSchemaLocation CDATA #IMPLIED
                >

        <!ELEMENT external-schema EMPTY>
        <!ATTLIST external-schema
                filename CDATA #REQUIRED
                >

        <!--
             note: the interface="true", requires that useManagers=true in the
             properties file.
        -->
        <!ELEMENT table (column+,(foreign-key|index|unique|id-method-parameter|validator|behavior|vendor)*)>
        <!ATTLIST table
                name CDATA #REQUIRED
                phpName CDATA #IMPLIED
                idMethod (native|autoincrement|sequence|none|null) "null"
                skipSql (true|false) "false"
                readOnly (true|false) "false"
                abstract (true|false) "false"
                isCrossRef (true|false) "false"
                treeMode (MaterializedPath|NestedSet|AdjacencyList) "AdjacencyList"
                package CDATA #IMPLIED
                schema CDATA #IMPLIED
                namespace CDATA #IMPLIED
                baseClass CDATA #IMPLIED
                basePeer CDATA #IMPLIED
                alias CDATA #IMPLIED
                interface CDATA #IMPLIED
                phpNamingMethod (nochange|underscore|phpname) #IMPLIED
                heavyIndexing (true|false) #IMPLIED
                description CDATA #IMPLIED
                defaultStringFormat CDATA #IMPLIED
                >

        <!ELEMENT id-method-parameter EMPTY>
        <!ATTLIST id-method-parameter
                name CDATA "default"
                value CDATA #REQUIRED
                >

        <!ELEMENT column ((inheritance|vendor)*)>
        <!ATTLIST column
                name CDATA #REQUIRED
                phpName CDATA #IMPLIED
                peerName CDATA #IMPLIED
                primaryKey (true|false) "false"
                required (true|false) "false"
                type
                        (
                                BIT | TINYINT | SMALLINT | INTEGER | BIGINT | FLOAT
                                | REAL | NUMERIC | DECIMAL | CHAR | VARCHAR | LONGVARCHAR
                                | DATE | TIME | TIMESTAMP | BINARY | VARBINARY | LONGVARBINARY
                                | NULL | OTHER | PHP_OBJECT | DISTINCT | STRUCT | ARRAY
                                | BLOB | CLOB | REF | BOOLEANINT | BOOLEANCHAR
                                | DOUBLE | BOOLEAN | OBJECT | ENUM
                                ) "VARCHAR"
                phpType CDATA #IMPLIED
                sqlType CDATA #IMPLIED
                size CDATA #IMPLIED
                scale CDATA #IMPLIED
                default CDATA #IMPLIED
                defaultValue CDATA #IMPLIED
                defaultExpr CDATA #IMPLIED
                autoIncrement (true|false) "false"
                inheritance (single|false) "false"
                phpNamingMethod (nochange|underscore|phpname) #IMPLIED
                description CDATA #IMPLIED
                lazyLoad (true|false) "false"
                primaryString (true|false) "false"
                valueSet CDATA #IMPLIED
                >

        <!ELEMENT inheritance EMPTY>
        <!ATTLIST inheritance
                key CDATA #REQUIRED
                class CDATA #REQUIRED
                package CDATA #IMPLIED
                extends CDATA #IMPLIED
                >

        <!ELEMENT foreign-key (reference+, vendor*)>
        <!ATTLIST foreign-key
                foreignTable CDATA #REQUIRED
                foreignSchema CDATA #IMPLIED
                name CDATA #IMPLIED
                phpName CDATA #IMPLIED
                refPhpName CDATA #IMPLIED
                onUpdate (CASCADE|cascade|SETNULL|setnull|RESTRICT|restrict|NONE|none) "none"
                onDelete (CASCADE|cascade|SETNULL|setnull|RESTRICT|restrict|NONE|none) "none"
                skipSql (true|false) "false"
                >

        <!ELEMENT reference EMPTY>
        <!ATTLIST reference
                local CDATA #REQUIRED
                foreign CDATA #REQUIRED
                >

        <!ELEMENT index (index-column+)>
        <!ATTLIST index
                name CDATA #IMPLIED
                >

        <!ELEMENT behavior (parameter*)>
        <!ATTLIST behavior
                name CDATA #IMPLIED
                >

        <!ELEMENT index-column (vendor*)>
        <!ATTLIST index-column
                name CDATA #REQUIRED
                size CDATA #IMPLIED
                >

        <!ELEMENT unique (unique-column+)>
        <!ATTLIST unique
                name CDATA #IMPLIED
                >

        <!ELEMENT unique-column (vendor*)>
        <!ATTLIST unique-column
                name CDATA #REQUIRED
                >

        <!ELEMENT validator (rule+)>
        <!ATTLIST validator
                column CDATA #REQUIRED
                translate CDATA #IMPLIED
                >

        <!ELEMENT rule EMPTY>
        <!ATTLIST rule
                name (mask|maxLength|maxValue|minLength|minValue|required|unique|validValues|class) #REQUIRED
                class CDATA #IMPLIED
                value CDATA #IMPLIED
                size ID #IMPLIED
                message CDATA #IMPLIED
                >

        <!ELEMENT vendor (parameter+)>
        <!ATTLIST vendor
                type CDATA #REQUIRED
                >

        <!ELEMENT parameter EMPTY>
        <!ATTLIST parameter
                name CDATA #REQUIRED
                value CDATA #REQUIRED
                >
Something went wrong with that request. Please try again.