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


--
-- 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=36393;

--
-- 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=49395;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$l3IHyt9sag9wVUQh1.m2CxZ6mmxGOK3nQe1.jIM.S8Womf2rkoeGC','user','ak_b7be06c23eb9d0c0','2023-09-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$OQJZc.4ckOF0ihQbi27ZxTUkkIHO6t8oQMBwKrdldBqcXzp.webav','user','ak_f2464d8820ceb0f3','2023-06-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$PDxzuiuEZU/KZvvOEmDNFcCSZX3aq9FbmWgNcLAqIdStOlSgjBnV8','user','ak_101e6c7602b2b135','2023-03-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$genYKEX1YAfD8c28Sm6xEUtry.YynnOT.S1NrFj.zCwTT9fFIa1Bu','user','ak_b48bc30e778f00ff','2023-04-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$ifh4vqA7AIXZLrnzdSAKhPDFfqrUdKOz/tvXi9fsSvMLnTo28rOQc','user','ak_91d884646e6a9cde','2023-05-11 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$vUz3nv06Bda..IX1m.dpPjsh0.8Qu8n6i2QpVnq4baE9OMgjUadOh','user','ak_7b98848bb5acbaba','2023-07-11 10:20:00',NULL);

