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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$MMcMJ9dRHhzd6hC.H7bMT/7vSalWMYR5VaWS10rlS6U3ebK4yB9po','user','ak_93d9637a4b72196c','2023-11-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$oIzjLDza1tm/gmUB8GkFhehZdP0OKejGrQV2n1UVfAnQNamy3Wiwp','admin','ak_ec679a97ccd4dcd6','2023-03-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$4ZKpr.RqCrnFGWcBG32atDa6fXhs2gSvtEgHTn9bemMnZSPFz7SGP','user','ak_77f7f6219bd0fb77','2023-01-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$H50VuhtFSs/S77dMHXSGCM2CJscf4gVVML8gEMobPwFwNaohXMxbc','user','ak_2e4c43884edf5e11','2023-10-21 10:13:00',NULL);

