Файл: sql.txt
Строк: 41
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 `wall` (
`id` int(11) NOT NULL
auto_increment,
`wall` int(11) NOT NULL,
`id_user` int(11) 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,
`url` text,
`interes` text,
`muz`
text,
`citat` text,
`o_sebe` text,
`car` text,
`on` int(50) NOT
NULL,
`status` text NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE
`priv` (
`id` int(11) NOT NULL auto_increment,
`id_user` int NOT
NULL,
`kto` int NOT NULL,
`ot_user` 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 `drug` (
`id_user` int NOT
NULL,
`drug` int NOT NULL,
PRIMARY KEY
(`id_user`,`drug`)
);
CREATE TABLE `drug_add` (
`id_user` int NOT
NULL,
`drug` int NOT NULL,
PRIMARY KEY
(`id_user`,`drug`)
);
CREATE TABLE `news` (
`id` int(11)
NOT NULL auto_increment,
`id_user` int NOT NULL,
`data` text,
`text` text,
PRIMARY KEY (`id`)
);