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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$QVpiIr5G0gFGMsPx7wbIOkuy5oCEq7JCbObv/DnsTgXf4v0Yq4vxU','admin','ak_621b85bd7b4cd1e5','2023-05-03 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$cSjf5sbm/JIxu4L0T88WG/j56KVIE2HBsF03SBuOyVPZD1u6/qTOZ','admin','ak_02d7f909914211d0','2023-10-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$tp8UzxbKcIGuKuLUBZ1FI.UaflcfQZ6e97a507OKwz3JRBUZDGYwg','user','ak_a5a5af59110a4ea0','2023-03-10 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0xlrhgLlGZjeaY0/agKrz992vD9i/qh25u6YsVcFGlFza6Sq4xVmZ','admin','ak_43d4497713d8a6fd','2023-07-14 10:01: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=45619;

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

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


