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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$YGsqnjJSugFxfCQSs3PZAp2ZC4sDtElg/rjml89TXMFAMkIWdOunl','admin','ak_7754f075386e17ab','2023-06-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$E/7d502OGEqwvztYuo7J2.ohMi.D.o0x3.h8n1xdoMg19B0fPuYb.','admin','ak_02614a3dc22e580c','2023-06-16 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$mbKf68c5XBlvVDcUkL3cpHDV0yghR8C0jGBAyIJaxG7TrPr31ofWL','user','ak_635814803aadd1e3','2023-02-24 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$QzW5XVCfGCcjnISq5kXmhb/d4GJxJedsBGkpFamoSC4wbb6tNMsLB','user','ak_1d92d5a87b8f4b9d','2023-03-10 10:06:00',NULL);

