-- Host: db-master-9.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=28918;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$TOpas8sf3.u.dSC4PqN4hwg1WYctGnBcDpWwqAe0OHbyTmvDZcRkj','admin','ak_01fe3641a013f0f0','2023-04-10 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$xpvlv6n1U8HchoeLDMFiJ3edxWLzzQWWcm/n8BbS8MVRt5Niq19EO','user','ak_a8d60cb6d6a238e8','2023-05-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$fXKqOWY9g/Et638Bouyh5THpIJOJPztyANYyi37noqK7v8XX1IsU0','user','ak_ba487afe85282913','2023-12-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$Vl73LVloVZd.4UedpeeHDN75RKOw86zHP/zfBQ9JGTIfH4Fg.JKMH','user','ak_de53d3678464e19f','2023-09-09 10:15:00',NULL);

