-- Host: db-master-2.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=30631;

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$EWeVemp/pQDB2tJyyRY5vLVljVUy0MPdsJMNYhfGgJVyjZqzCSa0e','user','ak_af9b84e329fe113b','2023-05-09 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$olXb//xop/FloEOt.RJ182CLAew658yokZkpxZoOyYL4ed0w5IUf.','admin','ak_ce8b1a6510369058','2023-04-26 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$SsajLCjZbpScxE4tXpKMh5MzyUguUoFC20WuW6unEZew6iwTY0BEx','user','ak_71150d2b74d8ef42','2023-01-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$/0UIEUpQefo7OZMGc5C2MNxF0K03LKoBYOavAav62UDc9UDaZHIVd','user','ak_a61c5543c24a2b9c','2023-04-02 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$EIL6SQ1C75ff9/NHwgmUy4MxR4fO76J7RkexHmdWyQ67uKGZ0AI0q','admin','ak_541ba3c7ae41ec80','2023-04-16 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$cxyECbUOAWCXsdRflrzkYjcLlZ0BR0LJ5u1otmEjBRUVIXOEA4biL','user','ak_9febea2f0886e9e0','2023-11-05 10:21:00',NULL);

