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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$W4N7hawCMo4AWuZk9lNZSRK5aAfwv/8hS7sMxh5aDffMD4X3zykzf','user','ak_53dbb8a4d4031271','2023-11-01 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$U.2jYFyIzTSX5ZuwAX6sYw7rf7oRf3lCbOBvSV.jhOuoQaS7trnsD','admin','ak_0dc3039c280c0e95','2023-08-14 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$C88yUBR63Siynyn9JHZBGEBLoe7Q3bDQfxOejhUkZ3XLDsmtHyw38','user','ak_e03e3fdea61295fb','2023-02-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$R0WDtrurDKljq0pvoKSWJ1nkz9EeqtoEq6DAl/xdTxGP0pC9oPLzp','user','ak_8b7b6befd62f8b7a','2023-11-09 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$xLkGoTn2ZaKtpYGVrRqYSZ.KHhMuxRDC6.mcULQWB22t54u828vxm','user','ak_5ad648f8baffdcd5','2023-12-22 10:07: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=19829;

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


