-- Host: db-master-5.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=21665;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$oOQg/sZNm0ey0swntHgLml/.5oKJNLW6CoJHJvvO4vWWYtpy/JCEZ','user','ak_93acb4c61f2fddc2','2023-07-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$fwgelJ2C0LVTkHVcyzXPF8PjqzTFp2TJSnjMBKeDeQIDkQC5pZJV3','admin','ak_d67a1d4489970810','2023-06-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$xEqPKi3QfHUcHZdh2qdQUelyvlEmeRcrxrrRpRicTgmDeurs2U2Cj','user','ak_ee428c4308cf3e63','2023-12-11 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$kr.Qi/hUlcnurbpi6UNiFhf86BkrjOTH6UAAPmLnU4sc7BNsf9crE','admin','ak_25d11e072db0b757','2023-06-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$tbM32YLiwbDPxrirU3hVzFdmNEqcifUaumKvO3lwvqUxNwiSQvHLb','user','ak_d139bfe527d714ae','2023-11-23 10:16: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=29932;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=17607;

--
-- Dumping data for table `sessions`
--


