1 CREATE TABLE accounts (
2 # Account identifier
and type
3 uid
int(6) not null auto_increment
,
4 hruid
varchar(255) not NULL,
6 # Account
type and state
7 type varchar(16) default null,
8 is_admim bool
default false,
9 state enum('pending', 'active', 'disabled') not null default 'pending',
12 password char(40) default null,
13 registration_date datetime
not null,
15 # Administrative tools
16 flags
set('watch') not null default '',
17 comment varchar(255) default null,
20 full_name
varchar(255) default null,
21 display_name
varchar(255) default null,
22 sex
enum('female', 'male') not null default 'male',
23 mail_format
enum('plain', 'html') not null default 'html',
24 skin
varchar(32) default null,
26 primary key uid (uid
),
27 unique key hruid (hruid
),
33 CREATE TABLE account_types (
34 type varchar(16) not null,
35 perms
set('mail', 'groups', 'forums', 'list', 'search', 'portal') default '',
37 primary key type (type)
40 CREATE TABLE account_profiles (
43 perms
set('owner') not null default '',
45 primary key id (uid
, pid
),
50 # vim
:set syntax
=mysql
: