You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.6 KiB

  1. CREATE TABLE `database_users` (
  2. `database_id` int(11) unsigned NOT NULL,
  3. `user_id` int(11) NOT NULL DEFAULT '0',
  4. `created_at` datetime DEFAULT NULL,
  5. PRIMARY KEY (`database_id`,`user_id`)
  6. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  7. CREATE TABLE `databases` (
  8. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  9. `name` varchar(100) DEFAULT NULL,
  10. `read_token` varchar(255) DEFAULT NULL,
  11. `write_token` varchar(255) DEFAULT NULL,
  12. `created_by` int(11) DEFAULT NULL,
  13. `created_at` datetime DEFAULT NULL,
  14. `micropub_endpoint` varchar(255) NOT NULL,
  15. `micropub_token` varchar(1024) NOT NULL,
  16. `ping_urls` varchar(1024) NOT NULL,
  17. `timezone` varchar(100) NOT NULL DEFAULT 'UTC',
  18. `metric` boolean NOT NULL DEFAULT 1,
  19. PRIMARY KEY (`id`),
  20. KEY `read_token` (`read_token`),
  21. KEY `write_token` (`write_token`)
  22. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  23. CREATE TABLE `failed_jobs` (
  24. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  25. `connection` text COLLATE utf8_unicode_ci NOT NULL,
  26. `queue` text COLLATE utf8_unicode_ci NOT NULL,
  27. `payload` longtext COLLATE utf8_unicode_ci NOT NULL,
  28. `failed_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  29. PRIMARY KEY (`id`)
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  31. CREATE TABLE `migrations` (
  32. `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  33. `batch` int(11) NOT NULL
  34. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  35. CREATE TABLE `users` (
  36. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  37. `url` varchar(255) NOT NULL DEFAULT '',
  38. `created_at` datetime DEFAULT NULL,
  39. `last_login` datetime DEFAULT NULL,
  40. PRIMARY KEY (`id`)
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;