-- Host: db-master-5.internal    Database: webapp_db


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=28915;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=24799;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=30291;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$9VibEOCH2J06WoMjO4f1Dwyx.S01XXtQj2ZwpqvnYDmYmmpeGFESs','admin','ak_c0e4a1916c769ce1','2023-12-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$Kku945QDe2R1SHz.fgE4mcE.oZKlSaMn0WJg11jNVBCsT7Lv4o5tv','admin','ak_28b09e68fec25ddb','2023-06-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$c69LG1VjR3na9KEve1ld1XBeFCrCjzYTuV4QKR/nDuAHlpsFfHW4Y','admin','ak_13544318a9520796','2023-03-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$OYK4Y.m.504cvukHcM7O.Nchs5wGDgDENDe74bmea0T02ID5heogU','admin','ak_e2abf57106f1674a','2023-09-06 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$GY2t6ErgO8d7qkWlHmoLu/dfiq.HL0YscqQl9bLIBaHNB1CoCRnPm','admin','ak_803130f568fc433b','2023-08-16 10:11:00',NULL);

