Joywork/presentation-api/sql/presentation_complexes.sql
2026-05-22 21:21:54 +03:00

24 lines
866 B
SQL

CREATE TABLE `sended_pdf_complexes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_agent` mediumint(9) NOT NULL,
`id_object` int(11) NOT NULL,
`date_send` datetime NOT NULL,
`id_client` mediumint(9) NOT NULL,
`nazv` varchar(255) NOT NULL,
`path` varchar(255) NOT NULL,
`send_type` int(11) DEFAULT '0',
`close_contact` tinyint(1) NOT NULL DEFAULT '0',
`hide_address` int(11) DEFAULT '0',
`new_price` double NOT NULL DEFAULT '0',
`token` varchar(255) DEFAULT NULL,
`id_request` int(11) DEFAULT NULL,
`sent_catalog_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `id_agent` (`id_agent`) USING BTREE,
KEY `id_client` (`id_client`) USING BTREE,
KEY `id_object` (`id_object`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=373 DEFAULT CHARSET=utf8
ALTER TABLE catalogs_apartments_favorite DROP FOREIGN KEY catalogs_apartments_favorite_FK;