CREATE TABLE tips (
  id int(6) NOT NULL auto_increment,
  tip_section_id int(6) DEFAULT '0' NOT NULL,
  user_id int(6) DEFAULT '0' NOT NULL,
  state int(1) DEFAULT '0' NOT NULL,
  name varchar(128) DEFAULT '' NOT NULL,
  tip text DEFAULT '' NOT NULL,
  timestamp timestamp(14),
  PRIMARY KEY (id)
);

CREATE TABLE tips_sections (
  id int(6) NOT NULL auto_increment,
  tip_section_referer_id int(6) DEFAULT '0' NOT NULL,
  tip_section varchar(50),
  state int(1) DEFAULT '1' NOT NULL,
  PRIMARY KEY (id)
);

CREATE TABLE users_supp (
  user_id int(6) NOT NULL,
  supp_info blob,
  KEY id (user_id)
);

ALTER TABLE sessions ADD KEY user_id2 (user_id);
ALTER TABLE webcam ADD image_small blob;
