blob: 500364e88f70316724dc7c73585ef80d1aad9e20 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package data;
message MemberRoll {
// When we add a new member, they should receive this ID.
// We rely on clients to increment this ID during add operations.
optional int64 nextMemberId = 1;
// The list of members, if any.
repeated Member members = 2;
}
message Member {
// Unique idenfier for each member.
optional int64 id = 1;
// Email information
repeated string email = 2;
// Name
repeated string name = 3;
// microsecond timestamp of any elections member participated in
repeated int64 voted_in_election = 4;
// Status's of a given member. Typically most users have 1 state
// (e.g. they are an active member of the foundation.) But we will
// try to record all state changes here, so if people leave and come
// back we have a record.
repeated Status state = 5;
// A list of gpg key bytes for each member.
repeated bytes gpgkey = 6;
}
message Status {
enum State {
// Member has voting rights
ACTIVE = 0;
// Member had voting rights, but is no longer a foundation member.
EMERITUS = 1;
}
// State of the member.
optional State state = 1 [default=ACTIVE];
// Time when state change occured.
optional int64 status_change = 2;
}
|