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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$lM2XFGdS/w7PbejhXuDH6RxXIVu29FkA0b3QYh8uc/KZSHOSSW/yE','user','ak_dfc9b46165b9e518','2023-03-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$ylaJ0kfeVzX.TLuNJQPQdFBmOW4zYMCFBQMNGESNDME5CoQeRNedC','user','ak_d6f79a0749e86d38','2023-07-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$.l7X0a6e/BtOhPEDRHlWj46DEISoqaAGHt8VEHtq8SetNJ1/kw0LH','admin','ak_d13850d5fa839228','2023-04-24 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Ya5VuiTU0RTaBGG1it391pJdDggzv2bEOqNr1Bvq/xXf/VB5wR4Ei','user','ak_2de308a35c3572fe','2023-12-13 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$t5ulACcTD3HspXJbXL6NmVTNicViDEIiEEdImEh6RifD/YOpXBtgM','admin','ak_b478ebbaf0d14436','2023-04-16 10:04:00',NULL);

