-- Host: db-master-4.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=2214;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$5PwCKOUTHvS.ZBJ0oA7sq8vdW/OrLQ5ZDUB18gUQj.f6FIcFr.M.x','user','ak_943ebb4e795ad701','2023-12-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$iHkIBhKjK6fWADSJayIwaDN.kYhXR0vb2QmETg5gR.st8pcZ.zMYo','admin','ak_a11b4f8f828cc3c9','2023-11-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$/vjZ.rPw0EKlwIJr1bjEuLGBgXVrASf0V2vO6dVvn8CwhWLIVpfq1','user','ak_c9f0ab9dced66e61','2023-11-25 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$4uqdNbNZoAKZnPN6XnXUAsvyAF76f2p0fToLXWpzriTeDo7obtrRU','admin','ak_6b9262432bd6dd15','2023-02-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$loIVhvYgPsE31T6AVsfbMT7KYzi1rv4nuWANLh2Gxvsb7Co5m35P5','admin','ak_01ca383834543d00','2023-04-09 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$O1cfnYCfBWNHY7GflqqezvcdFfSz6Ols7fRCOMhx6tk8Us.5tC2Bz','user','ak_6bda0582b04511ed','2023-08-20 10:20: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=7097;

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


