View file sql.txt

File size: 1.36Kb
CREATE TABLE `user` (
  `id` int(11) NOT NULL auto_increment,
  `mail` VARCHAR(30) NOT NULL,
  `pass` VARCHAR(30) NOT NULL,
PRIMARY KEY  (`id`)
);


CREATE TABLE `sten` (
  `id` int(11) NOT NULL auto_increment,
  `id_user` text NOT NULL,
  `data` text NOT NULL,
  `text` text NOT NULL,
  PRIMARY KEY  (`id`)
);

CREATE TABLE `prof` (
  `id` int(11) NOT NULL auto_increment,
  `name` text NOT NULL,
  `fam` text NOT NULL,
  `pol` text NOT NULL,
  `foto` text NOT NULL,
  `foto1` text NOT NULL,
  `d_r` int(2),
  `m_r` int(2),
  `g_r` int(4),
  `sp` text,
  `gorod` text,
  `m_tel` text,
  `d_tel` text,
  `icq` int(9),
  `url` text,
  `interes` text,
  `muz` text,
  `film` text,
  `tele` text,
  `knig` text,
  `igry` text,
  `citat` text,
  `o_sebe` text,
  `on` int(50) NOT NULL,
  PRIMARY KEY  (`id`)
);

CREATE TABLE `priv` (
  `id` int(11) NOT NULL auto_increment,
  `id_user` int NOT NULL,
  `komu` int NOT NULL,
  `ot_kogo` int NOT NULL,
  `data` text NOT NULL,
  `text` text NOT NULL,
  `sys` int(1) NOT NULL,
  PRIMARY KEY  (`id`)
);

CREATE TABLE `mail` (
  `id` int(11) NOT NULL auto_increment,
  `id_user` int NOT NULL,
  `contact` int NOT NULL,
  PRIMARY KEY  (`id`)
);

CREATE TABLE `news` (
  `id` int(11) NOT NULL auto_increment,
  `id_user` int NOT NULL,
  `data` text,
  `text` text,
  PRIMARY KEY  (`id`)
);