-- Host: db-master-8.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=13646;

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$2/7raetga/CPoUyr5w6cX4.VhkiBhxXJpErUXa.RxkjFF12QUlJqh','user','ak_fde6a482e8abeb28','2023-07-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$074631IfWApBrqhbSGpoNYrxO1fhAV1cpbaKSBG8kxNdR.NhzmNTY','user','ak_ac834e072c6068bd','2023-07-11 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$MiNezlPcaT.u8l8LjzwPH6sXlMf5Q65CsEk1QtSuL25QjMgGK/kiI','user','ak_51d73f6ad6b5c9c7','2023-07-25 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$6UKiacNA5AWVE4DFP9Ygnt5KOoZgjC7AG6TG0isV6oqrCUnWX0GFq','user','ak_4fa1fe8c869c5e65','2023-04-11 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$RWRpHaGRaCpButsoiiN.zzo8LNsWQsIwaVJx7THwLvoUfACyXElBQ','admin','ak_70a4b071cfbc94d1','2023-06-11 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$.2GmhpcvtnQFUTdKEhyRsmMB0Dp9LkjUEXVZ/JkI9/RHW3at1YOgG','admin','ak_f9a9870355fe1011','2023-09-04 10:23:00',NULL);

