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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Rs986TGi4GVxqoQwFqbhrOFtxcJr2iSijPS7g2ADX5H7oknRvl.t9','user','ak_84f0109cbe5d8cf2','2023-05-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$t09rTV6j5zBrdeeDn4jneDQ7d/AWa1JyVxrpdspE3FjfAr50PJbNi','user','ak_b2a69cc2ed301f41','2023-06-04 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$o2Xw7b/NO73T5Fqz4m8zv2z6u4A0dsZh./d.5q9aDdvG/qHXCjQVX','user','ak_1be508d691537f0f','2023-04-13 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$D7GYFji9A.lDoHlyNVWkVlOzz/4Ai4msRyBbybAckV6wlwSOCMNil','admin','ak_0e936bf737a471f4','2023-07-16 10:10:00',NULL);

