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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$gvH94Kzm8ZMOYHtUyMMxWzLLhZrXPmhs/ZtRgGbqUZGSgwDFRJl77','user','ak_15ca198f73d9d162','2023-04-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Xl2fOKvPoUI7hk.DZk6ijxPgf8JmmXwvUow.Z7paID6k5XYtZLmG5','user','ak_08694662df6c2bc7','2023-03-12 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Y/JoWgRNK2mfwvLESl7AtFxzVrzzOz2eFzqNxMXSB96EIjL.2IHy.','user','ak_6b457a059f37033f','2023-01-01 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$XoIWkUNGu/JJzQBgsUONY.xJoZJScgPbA1k2EoO1WZdesWj5VXcjJ','admin','ak_b7380108d530e8ac','2023-12-19 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Gj26xOw1LmLUPv5TlDHQ4LmhpyNdB2Z8OXu0TCLy4IpWdy23zzqW9','admin','ak_94753f4777d1c0d1','2023-10-04 10:21:00',NULL);

