-- Host: db-master-2.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$kYNIrktIKoIZo2j5LEYWJnU4lyosYsGrBGTnHafz7Mc7SlxMD9XPJ','user','ak_3c8657b35fa08dfb','2023-02-27 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$VPUn/v8MebudCIu8g1K73E4vLMFWqbOv.SFoLB/K2xTUssAZLNnk1','user','ak_f5c2b5b6824076ba','2023-04-04 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$gVPJIe7SpzjZnQD1HJcXSOlgeJRf9s72gshqikCrM5Pt1kVOOUMYB','admin','ak_5752bc4a16a35b30','2023-05-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$KWHas1aYctfVX7uold5WJHcNoAlHcFbd0zlFGxydNWwHJdgIEeXT/','user','ak_bda52c98468dd4c8','2023-07-12 10:04: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=18564;

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


