-- Host: db-master-9.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=33732;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$eVmEuH1ujoMn6/Rw9aAN8RRHwOYQBX7f0Dgkiqvex9mPuDzzYc/Wh','user','ak_9b9dd61091fb1bea','2023-07-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$eFaafnGLdxhAU18ZdgYAsL1AQMJkWF4uesclZCOjpDEbJUJf2r/tX','user','ak_81633283d952ae7c','2023-09-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$KhOGJKB.hZ.CYS9X9W..YuE39BHLdOlcqVItUBypvp4J1ZhCAN0sh','admin','ak_2743cc3803f7387c','2023-04-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$PxnWawvFaoaRnDw0ML5RtH2FlCbhBfsKQO9AyZTc12m55749p3Lk9','user','ak_bf919350df96185e','2023-04-28 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$ERPqlFDIGvx/jzQU6X598dW35RzYIYsBWyHqj3nrH5mGqO4ptWpOH','admin','ak_b80ca9085b7e1986','2023-07-03 10:03: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=2708;

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


