-- Host: db-master-8.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=39043;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$DMUKqwuCnqiboT5VK8sk6FUq3xvFlSqE46p6766YePX8XYd3Y3tXJ','user','ak_43d07334f637a90f','2023-06-25 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$y6UnidzudFKTtY4YNT5jlx75klC5/yI15Bjjrgb.5asZKzBwSuHxy','user','ak_0cb78bd272ef0c2c','2023-04-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Ivd49sYj1GK0X7MUDf/9YGAxZVaJmAIOow5vgzkVbZDiDeuFgnCj5','admin','ak_4758bbc65e603257','2023-11-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$7ryT0CTfVM2yZ5HAxd96/myphU4/dXmTqReMmIAGLUdl/jjSB2FFc','user','ak_2e565063fa6d0227','2023-08-11 10:10: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=5112;

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


