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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$s5f/02wtM5WU4YDSdrMDtqxbI.p.YaHFa.1qxtZmSdcMr5ACkHirQ','admin','ak_e29d1a382be9b1c1','2023-12-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$eb.C6qkCxGtf0RCSnVOzGD8Yw5fP64BdvQrjU0QSsGWNA3WJSBPYV','admin','ak_677569748654597d','2023-01-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Jjh06Pv02gJHn43XQs8kuxd4v5RHPcRGP5Mz5BT.t7BrES7ovIkO4','user','ak_8bcd9c6668def4ff','2023-06-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$WHCjN2U.DS9KjdxC3WHRF.qiNrQs8p6wlJEBIJ2KrhvYnzbTPlAlI','admin','ak_ccc05d5dbe1e3075','2023-12-17 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$dxy/vbqkvEfBdlHj6bAOyN7kN85XYK6XO9VZ/ty.6n9aoaqQlIEBn','admin','ak_3f209bc53494ac92','2023-08-04 10:08:00',NULL);

