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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$9Oxp0HL1neO5lZGj7AndL1qU7nTFqfDmzzBbGQpE8I7yi6b78uhvA','user','ak_6a296907f993cb04','2023-04-02 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$4tfZ1/BXRCjP2e3qv53oJuQyS7EQmgYsAlj1bLs7kAJpPkurose89','user','ak_7d7eeb3e72fb06d8','2023-04-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$NUNjSaG0/PFsNf1L6LdsUtJulwPDK7UovgEE1X0HsHRNXftJgmk9g','admin','ak_48618e425efa4584','2023-10-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$U8cQjvD4v.C1sYn7VJD5qkaibn3zHJGnwf.nsfKFNeQs5v.hRO/d7','user','ak_2b12c7c466da7c12','2023-11-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$rGTadEbyZ.RAicCuW7r0E5r5aoKczWqXeIclLLZKjvNCN89OxhAqo','user','ak_c5ef256ec1cccf9d','2023-09-02 10:21:00',NULL);

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

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


