-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecords.xsd
130 lines (130 loc) · 6.08 KB
/
records.xsd
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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="records">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="row">
<xs:complexType>
<xs:sequence>
<xs:element name="customer_info">
<xs:complexType>
<xs:sequence>
<xs:element name="name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
<xs:minLength value="1" />
<xs:pattern value="[a-zA-Z ığĞşŞçÇöÖüÜ]*" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="surname">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30" />
<xs:minLength value="1" />
<xs:pattern value="[a-zA-ZığĞşŞçÇöÖüÜ]*" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="gender">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="M|F" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="occupancy">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="30" />
<xs:minLength value="0" /> <!-- This value may be changed to 1 or greater if occupancy can't be empty-->
<xs:pattern value="[a-zA-Z ığĞşŞçÇöÖüÜ]*" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="level_of_education">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="PhD" />
<xs:enumeration value="MSc" />
<xs:enumeration value="BSc" />
<xs:enumeration value="HS" />
<xs:enumeration value="PS" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="email">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0" /> <!-- This value may be changed to 1 or greater if email can't be empty-->
<xs:pattern value="[\w._%+-]*(@gmail.com|@hotmail.com|@yahoo.com)"/>
<xs:pattern value=""/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="bank_account_info">
<xs:complexType>
<xs:sequence>
<xs:element name="bank_account_number">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{4}-[0-9]{7}" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="IBAN">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="TR[0-9]{2} [0-9]{4} [0-9]{4} [0-9]{4} [0-9]{4} [0-9]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="account_type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="deposit" />
<xs:enumeration value="drawing" />
<xs:enumeration value="daily_deposit" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="total_balance_available">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="currency_unit" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="€" />
<xs:enumeration value="₺" />
<xs:enumeration value="$" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="bigEnd_Version" type="xs:string" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="available_for_loan">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="😊|☹" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:unsignedByte" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>