webcron/webcron.old/database.sql

98 lines
3.1 KiB
MySQL
Raw Normal View History

2017-04-15 13:50:51 +02:00
-- phpMyAdmin SQL Dump
2018-09-12 12:33:41 +02:00
-- version 4.6.6deb5
2017-04-15 13:50:51 +02:00
-- https://www.phpmyadmin.net/
--
-- Host: localhost
2018-09-12 12:33:41 +02:00
-- Generation Time: Sep 12, 2018 at 12:23 PM
-- Server version: 10.1.34-MariaDB-0ubuntu0.18.04.1
-- PHP Version: 5.6.37-1+ubuntu18.04.1+deb.sury.org+1
2017-04-15 13:50:51 +02:00
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
2018-09-12 12:33:41 +02:00
--
-- Database: `jeroened_webcron`
--
2017-04-15 13:50:51 +02:00
2018-09-12 12:33:41 +02:00
-- --------------------------------------------------------
2017-04-15 13:50:51 +02:00
--
2018-09-12 12:33:41 +02:00
-- Table structure for table `config`
--
DROP TABLE IF EXISTS `config`;
CREATE TABLE IF NOT EXISTS `config` (
`conf` varchar(100) NOT NULL,
`category` varchar(50) NOT NULL,
`type` varchar(50) NOT NULL,
`label` text NOT NULL,
`description` text NOT NULL,
`value` varchar(100) NOT NULL,
PRIMARY KEY (`conf`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2017-04-15 13:50:51 +02:00
--
2018-09-12 12:33:41 +02:00
-- Dumping data for table `config`
--
INSERT INTO `config` (`conf`, `category`, `type`, `label`, `description`, `value`) VALUES
2018-09-14 12:43:29 +02:00
('dbclean.delay', 'Database Cleanup', 'number(0)', 'Cleanup Delay', 'How many days until the database cleanup is triggered', '7'),
2018-09-14 16:31:56 +02:00
('dbclean.expireruns', 'Database Cleanup', 'number(0)', 'Retention', 'How many days does the database keep the runs', '30'),
2018-09-21 13:03:12 +02:00
('dbclean.enabled', 'Database Cleanup', 'text', 'Enabled', 'Database cleanup enabled? (true: yes; false: no)', 'false'),
2018-09-14 12:43:29 +02:00
('dbclean.lastrun', 'Database Cleanup', 'hidden', 'Last run', 'Last run of database cleanup', UNIX_TIMESTAMP()),
2019-04-26 17:01:12 +02:00
('jobs.reboottime', 'Jobs', 'number(0)', 'Reboot time', 'The amount of time in seconds for the systems to perform a reboot', '300'),
('jobs.rebootwait', 'Jobs', 'number(0)', 'Reboot wait', 'The amount of time in seconds between scheduling a reboot and the actual reboot', '300'),
2018-09-21 15:13:33 +02:00
('master.crashtimeout', 'Master script', 'number()', 'Master script crash timeout', 'The amount of time in seconds after we can assume the master script is crashed', '3600');
2017-04-15 13:50:51 +02:00
-- --------------------------------------------------------
--
2018-09-12 12:33:41 +02:00
-- Table structure for table `jobs`
2017-04-15 13:50:51 +02:00
--
DROP TABLE IF EXISTS `jobs`;
CREATE TABLE IF NOT EXISTS `jobs` (
`jobID` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`name` text NOT NULL,
`url` text NOT NULL,
2018-09-12 12:33:41 +02:00
`host` varchar(50) NOT NULL DEFAULT 'localhost',
2017-04-15 13:50:51 +02:00
`delay` int(11) NOT NULL,
`nextrun` int(11) NOT NULL,
2019-05-24 18:22:17 +02:00
`lastrun` int(11) NOT NULL DEFAULT '-1',
2018-09-12 12:33:41 +02:00
`expected` int(11) NOT NULL DEFAULT '200',
2017-04-15 13:50:51 +02:00
PRIMARY KEY (`jobID`)
2017-05-12 09:35:06 +02:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2017-04-15 13:50:51 +02:00
-- --------------------------------------------------------
--
2018-09-12 12:33:41 +02:00
-- Table structure for table `runs`
2017-04-15 13:50:51 +02:00
--
DROP TABLE IF EXISTS `runs`;
CREATE TABLE IF NOT EXISTS `runs` (
`runID` bigint(20) NOT NULL AUTO_INCREMENT,
`job` int(11) NOT NULL,
`statuscode` char(3) NOT NULL,
`result` longtext NOT NULL,
`timestamp` int(11) NOT NULL,
PRIMARY KEY (`runID`)
2017-05-12 09:35:06 +02:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2017-04-15 13:50:51 +02:00
-- --------------------------------------------------------
--
2018-09-12 12:33:41 +02:00
-- Table structure for table `users`
2017-04-15 13:50:51 +02:00
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`userID` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`password` char(60) NOT NULL,
`email` varchar(100) NOT NULL,
2017-05-12 09:35:06 +02:00
`autologin` text NOT NULL,
2017-04-15 13:50:51 +02:00
PRIMARY KEY (`userID`)
2017-05-12 09:35:06 +02:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8;