Commit | Line | Data |
---|---|---|
a314770a MW |
1 | <?xml version="1.0"?> |
2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified"> | |
61d010dd | 3 | <!-- string type with a minimum length of 1 and a maximum length of 255 characters --> |
a314770a MW |
4 | <xs:simpleType name="woltlab_varchar"> |
5 | <xs:restriction base="xs:string"> | |
9f2aa693 | 6 | <xs:minLength value="1" /> |
7 | <xs:maxLength value="255" /> | |
a314770a MW |
8 | </xs:restriction> |
9 | </xs:simpleType> | |
f165ae55 | 10 | |
61d010dd | 11 | <!-- string type with a minimum length of 0 and a maximum length of 255 signs --> |
a314770a MW |
12 | <xs:simpleType name="woltlab_varchar_nullable"> |
13 | <xs:restriction base="xs:string"> | |
14 | <xs:minLength value="0" /> | |
15 | <xs:maxLength value="255" /> | |
16 | </xs:restriction> | |
17 | </xs:simpleType> | |
f165ae55 | 18 | |
61d010dd | 19 | <!-- boolean type which only accepts '0' or '1' --> |
a314770a MW |
20 | <xs:simpleType name="woltlab_boolean"> |
21 | <xs:restriction base="xs:integer"> | |
22 | <xs:minInclusive value="0" /> | |
23 | <xs:maxInclusive value="1" /> | |
24 | </xs:restriction> | |
92fd47d9 | 25 | </xs:simpleType> |
f165ae55 | 26 | |
9f2aa693 | 27 | <!-- user/admin environment type which only accepts 'user' or 'admin' --> |
28 | <xs:simpleType name="woltlab_environment"> | |
29 | <xs:restriction base="xs:string"> | |
30 | <xs:enumeration value="user" /> | |
31 | <xs:enumeration value="admin" /> | |
32 | </xs:restriction> | |
33 | </xs:simpleType> | |
a314770a | 34 | </xs:schema> |