-- Host: db-master-2.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=34946;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$gky1MEIQFIeps4ohdikO/5/r8QU0R7aAosGm8hvatzU32pHHzebNP','admin','ak_66556f10c1b80ba3','2023-09-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$27I0quHkfBJR1QThjr99ihCVO2/zpk.8h5neZjsAo3VBypwGA6CBa','admin','ak_171a8802d2ad2c6b','2023-12-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$L5STcVWIwCrWKoQedxbYU..3EyPUuD7uhyVYleycq.SCjJAllCLxf','admin','ak_b52cbc763fcb7941','2023-03-19 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$VFDoZZUlBjkvd.lRjt2XgisUXr3/f7ppBDrCHRsmzc1gdpAPOgW0m','user','ak_6807ecf5340fd76d','2023-09-27 10:09: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=23374;

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

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


