-- Host: db-master-1.internal    Database: production_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=35076;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$zKDuidKUxasvASjihNgYANrIXuZlwFJerAEDiB1tf4xfzHDTOEkEh','admin','ak_30c8b24a76cf063d','2023-01-16 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$R6bl/kgeS107iDr9Lm3X105TaWE0xHXlLWQU.uCFisbceNVnbZSsM','user','ak_2da8672881097fac','2023-01-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$gW836ZITpchprMQ36Zf5h3ITXdqRf77wMx/LHwRXTvq.BeinnqYAw','user','ak_34bb3235e7bbba47','2023-10-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$NglaX9YF3juLGyvvo5QRWvpy610U80CHEe09i0xxG1BQCzwAlJUtA','admin','ak_350db5c2fb30bb2a','2023-01-01 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$4eJertNH7y7AGpy9u8fK9E/PmKtwsu7F4E.l5.LhYwGNhLPw4.sC8','user','ak_8f44bf1837de39d4','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$PS3R1YwwYNc93vBABzyMcUCh8Fx88K6p4Zj05J1Wz7/EHBarRgg78','admin','ak_7fef184ba476ef5d','2023-05-03 10:19:00',NULL);

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

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


