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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$5I4sybNktVvZQjKa6QTlpap1PxW9BDO6JVWJB9rWLXKaWniq4tCwW','user','ak_36354cf8cf65a26a','2023-04-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$XFc4ZXoix9TCvXinwCthyGokOgFvDwwqChiRvwcFUM/z544M4UVgy','admin','ak_849f488d228b8f0d','2023-08-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$OxgGHDJ2dCK3F7oI28WR.St.Gnv3F/qC/zmMut1KpgeY9KLpW08.l','admin','ak_895160afca634995','2023-06-25 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$6C3jn76Ber/yyc4V1qQl9oQHTMqq7kSHP2pWz9pBbutc4KUm1vY5I','user','ak_4e2647c274ef9ed0','2023-08-11 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$11ORC/UjpDIQOeWSraXvwvYMN6S/YtDMHo330msGLNBRYmwGv3WCx','user','ak_3284307ab5256cb6','2023-08-09 10:16:00',NULL);

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

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


