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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$ppnNGZj0cCPZnGuqDBpShju7y7jgSf.guc7plH0ZQiLKBVWbyGQ8U','user','ak_ae81b40f13c42441','2023-04-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$QuWCESGcrkWQ2zWyCvhReUi37spveIrMqIcjFGjMl4mCxAPe0/hxZ','user','ak_8f352f582bdbdf1b','2023-06-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$ZSjpku9WBazcK6UiXVZ5AMpGNV/3jknBVW9iFRm1eEACHdoLaHTei','admin','ak_aca6d7574deba63d','2023-03-26 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$cZW3Q86lanBj3OC7wxE6tTFy9YV30rs2jLzfdzMw1qyDZ2CpYfA8U','user','ak_9812e304cdab02c2','2023-08-14 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$SK06jAhyxF5MoMZ/ZZjGd.TYP5rpggEwKTlPGIUsvizrS4Wb8I82a','user','ak_bd8819df5c1c513e','2023-06-11 10:02: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=31384;

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


