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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$DOXKdah9/ZTT7tC.xJ0Wi7R2Q.bqmBD/ELcc2.s2EuwBn3D9ttgOM','admin','ak_295206a1d073d6a8','2023-05-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$P.fvWbYPJMDpX9RC8HySjFfE5OwMIcrr8jgxva29629Bb.1L53fxg','user','ak_01cc68036d628d9a','2023-03-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$PfTgSkekFVf/rQqHo8nlDUqBNHesFEZbHF/ndvvBWaIDtaAgSlOzg','user','ak_3c8067c97336f172','2023-05-26 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$h3O/SZ7tYjcWfIaXuLijdI7afqQTzGdVRNGpD1Reiz5EWliSwJLtt','user','ak_24bf5bad10c4fa15','2023-11-04 10:21: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=4947;

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


