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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$EPi2oqWfkE64Jl7IcVEBepOrnn6zuuaVN.Guar5W8BC2KwAA8Yv1P','user','ak_3d303648732681c2','2023-07-20 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$53/CfCoLdAa4WvqZIRDNxRWjTPIJP7MxMPASDwQSB4OtXk3MNe3Do','admin','ak_1c2e31b95aa65588','2023-04-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$2QDugKCmFHdF/F4WFFQRqG2bm807RCMds2I18rVTK9SawrCd60toL','user','ak_5eaa8c76afeb6722','2023-08-16 10:02: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=23107;

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


