Commit | Line | Data |
---|---|---|
81ef0a18 FB |
1 | create table profiles ( |
2 | # Profile identifiers | |
3 | pid int(6) not null auto_increment, | |
4 | hrpid varchar(255) not null, | |
5 | ||
6 | # Who is this? | |
7 | xorg_id int(8) not null, | |
8 | ax_id varchar(8) default null, | |
9 | ||
10 | # Some singletons | |
11 | # birthdate and birthdate given by reference directory (library, school...) | |
12 | birthdate date default null, | |
13 | birthdate_ref date default null, | |
cde4fb1d | 14 | deathdate date default null, |
4e426a09 | 15 | |
94b72319 | 16 | sex enum('female', 'male') not null default 'male', |
4e426a09 FB |
17 | section tinyint(2) unsigned default null, |
18 | cv text default null, | |
3cb24c05 FB |
19 | freetext mediumtext default null, |
20 | freetext_pub enum('private', 'public') not null default 'private', | |
21 | medals_pub enum('private', 'public') not null default 'private', | |
22 | alias_pub enum('private', 'public') not null default 'private', | |
81ef0a18 | 23 | |
4e426a09 FB |
24 | nationality1 char(2) default null, |
25 | nationality2 char(2) default null, | |
26 | nationality3 char(2) default null, | |
27 | ||
bd5155cc FB |
28 | # Last modification date (for notifications) |
29 | last_change date not null, | |
30 | ||
81ef0a18 FB |
31 | primary key pid (pid), |
32 | unique key hrpid (hrpid), | |
33 | unique key xorg_id (xorg_id), | |
4e426a09 FB |
34 | key ax_id (ax_id), |
35 | key nationality1 (nationality1), | |
36 | key nationality2 (nationality2), | |
37 | key nationality3 (nationality3) | |
81ef0a18 FB |
38 | ); |
39 | ||
40 | # vim:set syntax=mysql: |