-- Host: db-master-0.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=49984;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$X/P446SLPpTT7lPZizFzK7pxC397/z/EYzgxRelNVsLkqBSU2vXZh','admin','ak_501301c527f77b71','2023-06-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$wGzTEixNko8CJtV55D7uwDlDrw.0T7xZKsqcEmW.YSjXX61Jqjrd/','admin','ak_0d4f55be375612d9','2023-05-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$YBTcY/uTxaV87v1s1.kJmhn0uAsdf/Df0QubxQrehZUuoYMzf.eV8','user','ak_1a6bde26802db9d8','2023-06-13 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$OvPpDGYLaRSyg2VedK0UKLfFJ6siXY8Wu7qXEMtOE0bicRg9p9ZC6','user','ak_f6b1827c7d2442a7','2023-03-28 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$rvx6E545833g4O8HnzV1/6.ZqfN/L6xEZSmQ6gM6N9fhFvBgfHgSs','user','ak_371d0872434d769d','2023-06-28 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$WcXW2aKsMpGnZHb8eOSl84GXu1m.tM/J0O4WzCqkwpT8Ex7kjpvn4','user','ak_237ecae917cd847f','2023-01-22 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$OdtcwpjDqWYaq55A7yINsP48BPeEMfTtlWYvYiKQu/UVn18qtCBlK','user','ak_5dc0599dc7ed8e90','2023-07-15 10:19:00',NULL);

