2020-07-06 08:33:35 +00:00
|
|
|
create database if not exists `intimate_source`;
|
|
|
|
use intimate_source;
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `platform_openrec` (
|
|
|
|
`url` text NOT NULL,
|
|
|
|
`target_type` varchar(64) NOT NULL,
|
|
|
|
`source` longtext DEFAULT NULL,
|
|
|
|
`ext` json DEFAULT NULL,
|
|
|
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2020-07-07 04:04:05 +00:00
|
|
|
`operator` int DEFAULT 0,
|
|
|
|
KEY `operator_idx` (`operator`),
|
2020-07-06 08:33:35 +00:00
|
|
|
KEY `update_time_idx` (`update_time`),
|
|
|
|
KEY `target_type_idx` (`target_type`)
|
|
|
|
);
|