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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$UrFJoMUUt37Q0juFGS.Xl6/UBWnJlsQQnWC223OBUl0043V6lcZ0t','user','ak_5e6cff95061ebefa','2023-04-13 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$92YYngILGJBbXshS22Tb11qiV6c5iWbyVtuYJEscDMNRTRy53Vaus','user','ak_a222c12b64634900','2023-02-06 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$iirbGgrymmahhx5.30Y5odiJDX0tAdX8xAznffpzjgbIYY5BTUD5N','user','ak_565b967abf0ac955','2023-03-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$BDAYG6cCdnNIamE2ERAZTbT4ocGrXQdqXbhc0QTP4kcYPgfK32hTT','user','ak_62242308551239cc','2023-01-08 10:05: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=33932;

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


