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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$QuE9hw4PWXgGslo7AOlFrSDnb2u0mfWodiblHnUDRZ2PYEpy/UnGK','user','ak_ec13a7115e2f0da4','2023-09-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$nhnCyMxtl14vf1dDdWrucqZRnQdCk/aZ526CVhRq8pHrM0VsU8G8u','admin','ak_a1f2936b9d61e859','2023-08-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$R9NO9R1V1L3OX5AMU8EXFs8cc.crjSkcL12n3PUkBC6QNS4knFHkn','user','ak_9a520d95330b62ca','2023-03-22 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$IynpEzmeO.GRxJc9SoCXSyXtRbWhtP07Ndem./b/EFSnfwMp7JnrL','user','ak_39a23134382e25cd','2023-03-19 10:14: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=38407;

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


