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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$dt7wWCScEJaQWvFK7G8aqHVRqDhC1MPpJgKXtoA43FJSq4uYSqn..','user','ak_48cb96ed27e39363','2023-05-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$v0nW8Jm7g2ydsTjo9.xIUvaPVRSte0X7Tw406JP7xNWS2eEVBZR3/','user','ak_63411cfded00cc8b','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$fmmqL2dybIUGU9xAsERTr2V6z/33VtA7MG.juJ/WcuAeAP5oUhJJZ','user','ak_4d185fcb42fb0870','2023-05-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$WjPYzJ9utD.2H2YoZgLUOKfaO8idSLRJzN3/U/Pp5sLrhoChTln.d','user','ak_f7addbf4b317c6d2','2023-01-14 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$s9AUIcfVC4b4s7N4yGbDyAATi3aSmfcRW7DifG/nB4tqn9UuB7Eee','user','ak_ec7c5117c7b212d5','2023-01-21 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$UWaEYLt8vP6vjKCaTCXimQh69xgQjF.82kE45Ni.wQG36ebVvYnxo','user','ak_9c34a132f1ac0528','2023-12-15 10:01: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=17907;

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


