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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$0/GaQgodGLga/p5H/HHggP9oOpGV40ZtCRSsUoFFVjHkaQO9M6uuf','admin','ak_b35aa606671da249','2023-08-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$TfJ2Kzm2CUAGmDvmwfxmQWEfIHLT9RRYdcqLEO4KzWmkEgZd133jZ','user','ak_45a265ef86ae1f90','2023-01-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$zwmsXbLQLHgrpDq91YLcr5aS.9o/fcU2l5GnFMBP5JbOHH4fSF50j','user','ak_33d12218d9b3af42','2023-01-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$wfO65a1XnUO6NXZBncLwoPkpW2Cs3rSMuAaEvGhBd0CGvqoaRQ2e8','user','ak_2d477fa848cb6a7e','2023-04-06 10:08: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=8714;

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


