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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$N5yqy7OOBQ7iCxLSCv5RR3yLufR/1CpsSQuERv75e3qznBwzgg.tj','user','ak_07d6a9e33a7e0f38','2023-10-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$4R1ZknVqHPGO5bSWjhpKdvcyzhcW5kWWTt9Knbnwb.4/zEvUwNOuL','user','ak_8b89104e49780aa1','2023-05-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Ggol296DdNO5q46ffXeuoTKzEl21zEhcXy6oTKgx.dA1OXCjKuJvT','user','ak_4dc237a516541dfa','2023-03-14 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$/Jo4peF5405JzL21LEdNNcRDTjf6cxV1ckixeepM4klZIERBlvQ./','admin','ak_c1ceb33769bdf37e','2023-09-14 10:23: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=46881;

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


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

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


