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.

43 lines
1.5 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. PRIMARY KEY (`id`),
  18. KEY `read_token` (`read_token`),
  19. KEY `write_token` (`write_token`)
  20. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  21. CREATE TABLE `failed_jobs` (
  22. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  23. `connection` text COLLATE utf8_unicode_ci NOT NULL,
  24. `queue` text COLLATE utf8_unicode_ci NOT NULL,
  25. `payload` longtext COLLATE utf8_unicode_ci NOT NULL,
  26. `failed_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  29. CREATE TABLE `migrations` (
  30. `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  31. `batch` int(11) NOT NULL
  32. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  33. CREATE TABLE `users` (
  34. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  35. `url` varchar(255) NOT NULL DEFAULT '',
  36. `created_at` datetime DEFAULT NULL,
  37. `last_login` datetime DEFAULT NULL,
  38. PRIMARY KEY (`id`)
  39. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;