-
Notifications
You must be signed in to change notification settings - Fork 40
/
contacts.fbs
60 lines (48 loc) · 987 Bytes
/
contacts.fbs
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
table ContactList {
lastModified : long;
entries : [Contact];
}
enum Gender : byte {Male, Female}
enum Mood : byte {Funny, Serious, Angry, Humble}
union Address {PostalAddress, EmailAddress, WebAddress, TelephoneNumber}
table Contact {
name : string;
birthday : Date;
gender : Gender;
tags : [string];
addressEntries : [AddressEntry];
currentLoccation : GeoLocation;
previousLocations : [GeoLocation];
moods : [Mood];
luckyNumbers : [int];
}
table Date {
day : byte;
month : byte;
year : short;
}
struct GeoLocation {
latitude : double;
longitude : double;
elevation : float;
}
table AddressEntry{
order : int;
address : Address;
}
table PostalAddress{
country : string;
city : string;
postalCode : int;
streetAndNumber : string;
}
table EmailAddress{
mailto : string;
}
table WebAddress{
url : string;
}
table TelephoneNumber {
number : string;
}
root_type ContactList;