mirror of
https://github.com/house-of-vanity/tracker_watcher.git
synced 2025-07-07 09:54:08 +00:00
Implemented logger with different log sources.
Lines may be tenanted with user and/or topic.
This commit is contained in:
32
schema.sql
32
schema.sql
@ -1,8 +1,8 @@
|
||||
-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64)
|
||||
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
|
||||
--
|
||||
-- Host: 127.0.0.1 Database: test
|
||||
-- Host: localhost Database: rutracker_bot
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 5.5.5-10.1.29-MariaDB
|
||||
-- Server version 5.7.21-0ubuntu0.16.04.1-log
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
@ -28,7 +28,25 @@ CREATE TABLE `contact` (
|
||||
`user_id` int(20) NOT NULL COMMENT 'Telegram user id',
|
||||
`reg_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'First /start message',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`logger` varchar(45) DEFAULT 'default',
|
||||
`line` varchar(400) DEFAULT NULL,
|
||||
`time` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||
`link` int(11) DEFAULT '0',
|
||||
`user_id` int(11) DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=584 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
@ -44,7 +62,7 @@ CREATE TABLE `notification` (
|
||||
`user_id` int(20) NOT NULL COMMENT 'user id on telegram',
|
||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Creation date',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=latin1;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
@ -61,7 +79,7 @@ CREATE TABLE `url` (
|
||||
`u_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Last update on rutracker',
|
||||
`last_check` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=latin1;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
@ -73,4 +91,4 @@ CREATE TABLE `url` (
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2018-01-17 15:40:03
|
||||
-- Dump completed on 2018-01-29 17:35:08
|
||||
|
Reference in New Issue
Block a user