-- Host: db-master-7.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$XgV7U6Kgdrp69cIYs1jWU5hdUjfCSil6cFPppIewGBdLVzRW.6nlo','user','ak_edaf2339f0b87dfa','2023-02-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$jej6OztcpiAMm.MktcyxAJAd7XtejesHs2WB8mF1C/tu/mKl/gI50','admin','ak_28f402d6b3ed7708','2023-08-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$OLyEokod18eEOp6mn01yrLVG2iQHQlRSP2yQRzSVeEdVun/1MwMaC','admin','ak_dc64ccd5b09d267e','2023-05-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$QqrgbecOkWDBYTrcfumowpShTjZM8i8/s2eMoJ.3S7ngpOQDM1E4e','user','ak_287869844fd379a4','2023-04-19 10:05:00',NULL);

