-- Host: db-master-3.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=38382;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Fryum0ulrGei6Bs0a7M/GPZWUkclURnrAvgnneRrNSNa3XcW0DyVy','admin','ak_3632423e98acca44','2023-09-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$TlCUk/93ok.HWUkc2EJKKMSJs9ev/MUrP0GD5ambpanJxsTTBDrLZ','user','ak_3445f90c09a6b5fa','2023-02-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$ZdfiUXqU2w.zZHb.X0I8Qccb1YmnjtiDxT.4MtpGqeCnwFRtansh9','user','ak_be2142ac0fe3d784','2023-03-11 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$xIhGdKofQ7xMLm6a/WoUnaTMptRCYR/JKxu2C9sIT0sMOqQUXB.Gc','admin','ak_ac4f26d0932dcadb','2023-09-05 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$u7NP9Dy1K2xoYemtz61kmPw4ryX8xW0iEje5WY6IuPDrbTZUDFHp0','user','ak_415e9ff0ea2061ba','2023-12-25 10:06:00',NULL);

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

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


