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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$NbXGtEefuBIIyUrQQFXY3ZCFHs9q2tjhjpQjUC6MfDo6gBufKloYC','user','ak_4ec8382ba9ed611d','2023-05-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$0iMvLu9rlnfXJchn1sV0Vg6LQ8Usl/Dz3sv6QGiaUfeEERAul8qpJ','user','ak_1b1826685fcff496','2023-09-03 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$OQgmWhHrjtYj.T0k4L4N1vHymk4oPZxtGODJ.ho0.lHRydfAHw75A','admin','ak_de8fe3191e960df1','2023-09-12 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$A1B7XeKgVKzRewevC9SEeN4Yf0DoEIQfciDQAsd8ZEcP/1AezqG61','user','ak_7af9bd5c51a5de0b','2023-06-13 10:07:00',NULL);

