-- Host: db-master-1.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=38411;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$KNLZrZI1MvVc0uYD2iJj7AFPgE4yQrfqz5W0JxrX65ZH8Gi4fpCo/','user','ak_465e46fd71250e1b','2023-07-04 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$4RBvcivZEGe4LEBWZPZoyRTRGtxejiqMbqo7Rl2uGWGxt9nDweRKB','admin','ak_f2fea732e12b434f','2023-04-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$LvLylF7v9Ej7XeaZSIJukj02obIj3rcTtEQC43Y6YcZwo1VXCWVD5','admin','ak_4b196bfada45a640','2023-05-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$NSF2U9KlJqmWi6FhH7mOzDcblYY5biXAbl6eOV1sZAsd33aUWSX7o','user','ak_e52d095435cd6916','2023-06-01 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$QHQOMrGD12Jc9CEmUvmEhiXWvQqsD.uFcHigbH7A1gUjWkdb4MGvb','admin','ak_f79ba91af1c41f41','2023-08-04 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=50743;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=22036;

--
-- Dumping data for table `audit_log`
--


