database.sql 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.6.6deb5
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Sep 12, 2018 at 12:23 PM
  7. -- Server version: 10.1.34-MariaDB-0ubuntu0.18.04.1
  8. -- PHP Version: 5.6.37-1+ubuntu18.04.1+deb.sury.org+1
  9. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  10. SET time_zone = "+00:00";
  11. --
  12. -- Database: `jeroened_webcron`
  13. --
  14. -- --------------------------------------------------------
  15. --
  16. -- Table structure for table `config`
  17. --
  18. DROP TABLE IF EXISTS `config`;
  19. CREATE TABLE IF NOT EXISTS `config` (
  20. `conf` varchar(100) NOT NULL,
  21. `category` varchar(50) NOT NULL,
  22. `type` varchar(50) NOT NULL,
  23. `label` text NOT NULL,
  24. `description` text NOT NULL,
  25. `value` varchar(100) NOT NULL,
  26. PRIMARY KEY (`conf`)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  28. --
  29. -- Dumping data for table `config`
  30. --
  31. INSERT INTO `config` (`conf`, `category`, `type`, `label`, `description`, `value`) VALUES
  32. ('dbclean.delay', 'Database Cleanup', 'number(0)', 'Cleanup Delay', 'How many days until the database cleanup is triggered', '7'),
  33. ('dbclean.expireruns', 'Database Cleanup', 'number(0)', 'Retention', 'How many days does the database keep the runs', '30'),
  34. ('dbclean.enabled', 'Database Cleanup', 'text', 'Enabled', 'Database cleanup enabled? (true: yes; false: no)', 'false'),
  35. ('dbclean.lastrun', 'Database Cleanup', 'hidden', 'Last run', 'Last run of database cleanup', UNIX_TIMESTAMP()),
  36. ('jobs.reboottime', 'Jobs', 'number(0)', 'Reboot time', 'The amount of time in seconds for the systems to perform a reboot', '300'),
  37. ('jobs.rebootwait', 'Jobs', 'number(0)', 'Reboot wait', 'The amount of time in seconds between scheduling a reboot and the actual reboot', '300'),
  38. ('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');
  39. -- --------------------------------------------------------
  40. --
  41. -- Table structure for table `jobs`
  42. --
  43. DROP TABLE IF EXISTS `jobs`;
  44. CREATE TABLE IF NOT EXISTS `jobs` (
  45. `jobID` int(11) NOT NULL AUTO_INCREMENT,
  46. `user` int(11) NOT NULL,
  47. `name` text NOT NULL,
  48. `url` text NOT NULL,
  49. `host` varchar(50) NOT NULL DEFAULT 'localhost',
  50. `delay` int(11) NOT NULL,
  51. `nextrun` int(11) NOT NULL,
  52. `lastrun` int(11) NOT NULL DEFAULT '-1',
  53. `expected` int(11) NOT NULL DEFAULT '200',
  54. PRIMARY KEY (`jobID`)
  55. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  56. -- --------------------------------------------------------
  57. --
  58. -- Table structure for table `runs`
  59. --
  60. DROP TABLE IF EXISTS `runs`;
  61. CREATE TABLE IF NOT EXISTS `runs` (
  62. `runID` bigint(20) NOT NULL AUTO_INCREMENT,
  63. `job` int(11) NOT NULL,
  64. `statuscode` char(3) NOT NULL,
  65. `result` longtext NOT NULL,
  66. `timestamp` int(11) NOT NULL,
  67. PRIMARY KEY (`runID`)
  68. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  69. -- --------------------------------------------------------
  70. --
  71. -- Table structure for table `users`
  72. --
  73. DROP TABLE IF EXISTS `users`;
  74. CREATE TABLE IF NOT EXISTS `users` (
  75. `userID` int(11) NOT NULL AUTO_INCREMENT,
  76. `name` varchar(50) NOT NULL,
  77. `password` char(60) NOT NULL,
  78. `email` varchar(100) NOT NULL,
  79. `autologin` text NOT NULL,
  80. PRIMARY KEY (`userID`)
  81. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;