-- Host: db-master-5.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$wmZEDbCvEwTquZPLB0wuv8hPfQ0MsiHt0GIoRvDou/L/t8g4lutgI','admin','ak_c17472893b8c2420','2023-09-25 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$z/1B158wfT2z5wqTpAoi8VT4efApKgEM.D0MC7pytHxntr5Bxuz4p','admin','ak_a994032381b52d4b','2023-07-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$RqZuXl9bCdYz2dEeL84tGf3uz60jCl3GxovAB8pe2iA7F1d.1J4uM','user','ak_c6a8d19f950a2ea2','2023-01-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$c0TTOKZPpsWwG/evxAy..tTbf9OWLxX8vEeWQT3GL1zFANyYoyokD','admin','ak_26371809086b2f37','2023-11-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$yBTs1QyKhuLk1W42wOkzJ6QZ00ixoQmi5cBHvd0ntNPpL9Xb0th9b','user','ak_627c3e565ea60df7','2023-02-14 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$Ia/0sQSv3r56liGB3CXTHeHI9kGEoF3dQshtz44xUf6VbdGyNlunl','user','ak_57a32eabaea8b8f3','2023-01-20 10:11:00',NULL);

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

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


