1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- DROP TABLE IF EXISTS personal_agenda;
- CREATE TABLE personal_agenda (
- id int NOT NULL auto_increment,
- user int unsigned,
- title text,
- `text` text,
- `date` datetime DEFAULT NULL,
- enddate datetime DEFAULT NULL,
- course varchar(255),
- parent_event_id int NULL,
- all_day int NOT NULL DEFAULT 0,
- PRIMARY KEY id (id)
- );
- DROP TABLE IF EXISTS personal_agenda_repeat;
- CREATE TABLE personal_agenda_repeat (
- cal_id INT DEFAULT 0 NOT NULL,
- cal_type VARCHAR(20),
- cal_end INT,
- cal_frequency INT DEFAULT 1,
- cal_days CHAR(7),
- PRIMARY KEY (cal_id)
- );
- DROP TABLE IF EXISTS personal_agenda_repeat_not;
- CREATE TABLE personal_agenda_repeat_not (
- cal_id INT NOT NULL,
- cal_date INT NOT NULL,
- PRIMARY KEY ( cal_id, cal_date )
- );
- DROP TABLE IF EXISTS user_course_category;
- CREATE TABLE user_course_category (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- title text NOT NULL,
- sort int,
- PRIMARY KEY (id)
- );
- ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_user (user);
- ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_parent (parent_event_id);
- ALTER TABLE user_course_category ADD INDEX idx_user_c_cat_uid (user_id);
|