-- Host: db-master-4.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=49780;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$7P.CAVtiUJFG9kkR00wTomM8wwFkynkAlWj6Z6oui4RVMxLHtaDOf','admin','ak_a4452cbcd5e66c25','2023-03-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$0s46Os13Q7OwsMOonHviUVoPoB5Vwl2.38u2Opjv/HtX.G6JIy9YJ','admin','ak_f01623fa0ad15ee6','2023-05-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$rK0dz9hY/J5azftMnO4WmvrwprUAUvUyX8TQfEAYnrF6HJJd/mDtP','user','ak_3564a1ddab9dae72','2023-02-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$2dEVEKKO7R/AcQVSC9s.DesRDDp2UdvVOsWtof12ZMn54z4frJD2o','user','ak_b8099007816a2b93','2023-01-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$B4E6gDfX.uatFl1IwYmBY6oCUarW1hsbx5U1O8TPkkFWjFltbAqMd','admin','ak_db9fda9b9f950ad8','2023-06-04 10:07:00',NULL);

