-- Host: db-master-4.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$EXJyJ9RQMOsafuCdJz2yrufN.eTlqiDzztB2aL75oSFyVEcCREJkS','user','ak_f8620137b405520a','2023-01-27 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$2.MwqYBLfDqm1jgDM4SzZE2TSDWjCgeU7fMbeLhXzv2Hq7.PqPq7S','user','ak_150d3183eea24b53','2023-07-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$edf8X5gc6RoXX6DkqApVX0nEr4x45TsHHvxKgG.fKqiYyeBSMiQJ.','admin','ak_ef6889b6e434d190','2023-02-06 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$/9JA0h/UEdeQ1wAY7oifqMKft/D4EOI/Nx92i.J1N9zZaC2oOhLiA','admin','ak_3ce6982eac70763f','2023-05-27 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$9fGvNSdkxdgO4tUWmmagARGEC3jTxZrJPKX9AWCDs.97UStTEsFFY','user','ak_771ebe237309b4e3','2023-09-24 10:22:00',NULL);

