-- Host: db-master-4.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=30972;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$kK0/vNaglxIGH9Z8gCQcoINpm7ntNatHT5FTieEp3qXthVkHRzKhr','admin','ak_9f4fed83fcc5d17e','2023-02-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$v9NlIVUs4z.GB2LNxK7faG3e6oypsVVV4K4pQILePXHkQpmZB/mMx','user','ak_06099a62f16e7781','2023-05-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$LbeIUQa2mXdiIJoRY6Bkq0N/KooNewo5GBZ46t6C24NKrHYsK.2zS','admin','ak_9edb71b9a447393d','2023-06-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$1RRwHuBsNG0fLnDGDkE8iE1kCogS8C9uo6/o84n7DyxKDSlNTGGDq','admin','ak_3e88e90440daaa5b','2023-07-23 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$zAJPDnZeUZ9rbBngYpSVXG47I6FPp.OnZTN/ZQPMgZF/1qPlki6SH','user','ak_2ce97cc804bd0212','2023-04-01 10:07:00',NULL);

