-- Host: db-master-6.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=45794;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Rs7PtU5BfhZ8XsoRo17.RE2YU3YNvFZfoA8JwChEqcrFQPp0IL6v5','user','ak_3fce6b9ae7bc9e96','2023-03-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$633dFA.kdYjqB4Tl9JwvP19rwwABlWOOzwRk/Qk.AewJWK/w7A/1B','admin','ak_014b4493df9ff38b','2023-02-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$YAD2WEPZUMKdo1/Lp0nlATMsOYyY7iZ0LGFyX6Td5irs/HusTArsm','user','ak_46eb4f41735658e7','2023-04-21 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$3ToIt1uDuGD65V1zlBgJFSJn7jcY2/6xYwcBf/2SohU3caORMrKot','admin','ak_39c91971a6af06ee','2023-04-21 10:00:00',NULL);

