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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$bs2uvPDvyAMGE9XY8dNhyirhHaahWfO/MAykPY2eatKIarqNmJFcT','admin','ak_23a6abceb5c55955','2023-11-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$HzJdk4WmV.oUSPbVyFCJEeDDvDCyLQfBNHViej83Nd8.HmPqEsUcj','admin','ak_9727f7890b516cf4','2023-01-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$p.HCZpGQV7MYPsEKMnt/24Kqb/Oa.7ZfRMCRGdMitv5luTD5tHblm','user','ak_c42516255ad1d275','2023-08-11 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$P2qjDa0cRuUpregNgJmOkBUBQQYLiCSWBADZ7Dolipmg4YCE2ShHI','user','ak_1a90912b71ff1e25','2023-02-25 10:06: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=30395;

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

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


