summaryrefslogtreecommitdiff
path: root/phonebook.geneet
blob: e9e6276b633004537fdffd42a6e0f1053f67cde3 (plain)
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
Phone_Number {
	number : str;
	type : enum of HOME, WORK, MOBILE;
}

Email_Address {
	address : str;
	type : enum of PERSONAL, WORK;
}

Address {
	street : str;
	number : int;
	zip_code: str;
	state : enum of AC, AL, AP, AM, BA, CE, DF, GO, ES, MA, MT, MS, MG, PA, PB, PR, PE, PI, RJ, RN, RS, RO, RR, SP, SC, SE, TO;
	type : enum of PERSONAL, WORK;
}

Person {
	first_name : str;
	last_name : str;
	phones : list of Phone_Number;
	emails : list of Email_Address;
	addresses : list of Address;
	photo : image compress 95;
}

Book {
	version: int;
	people : list of Person;
}