+++ /dev/null
-CREATE TABLE groups (
- id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
- name VARCHAR(8) NULL,
- parent_id INTEGER UNSIGNED NULL,
- PRIMARY KEY(id),
- INDEX groups_parent_id(parent_id)
-)
-TYPE=InnoDB;
-
-CREATE TABLE users (
- id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
- group_id INTEGER UNSIGNED NOT NULL,
- name VARCHAR(64) NOT NULL,
- username VARCHAR(40) NOT NULL,
- password VARCHAR(40) NOT NULL,
- pcmail BLOB NOT NULL,
- useragent VARCHAR(255) NOT NULL,
- host VARCHAR(64) NOT NULL,
- created DATETIME NULL default NULL;,
- modified DATETIME NULL default NULL;,
- PRIMARY KEY(id),
- INDEX users_login(username, password),
- UNIQUE INDEX users_username(username),
- INDEX users_modefied(modified)
-)
-TYPE=InnoDB;