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

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$9Mrx19OF2JUfzn4uFAEYedWGq49qU1gAQn/alBy1T7dMNz0GGtbKw','user','ak_d05e3b24d673a13c','2023-03-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$r/fmnB9aYBOKKYVlt323B0k2aHNj91.yqIRnmsDz9Mm/HqMuG1bKe','user','ak_a3f3d3d79720c73c','2023-07-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$n.BIhURg6w7tQwqVxooXzygNHmth7qjAakZyZnIzh8PK4eh7lCgmY','admin','ak_64381c54a1973c1a','2023-08-02 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$vzXuKjP7F0KvqRlrEbqcGQQwB34q7sldrpsycygtRDsXvCexCMB0n','user','ak_ecb55ade04b4ff68','2023-05-09 10:16:00',NULL);

