-- Host: db-master-2.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=41079;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$f25XUXeRyzPZ91RKBDNu7dGaeNvmBjLgiEhWgtVl8jUIhEJZR.0HF','user','ak_ea6af4605bf9857b','2023-01-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$D2CI3.S/nO13Hrw9lWqu8i8WgBeI77kthF8aKfToAGoKBWQ6yYblT','user','ak_993eb57cce46385d','2023-11-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$wdyNmSzGOZLAfnetVJ1/DVWnlwqh7gA4ETzuyGve3T1q1V6UV6xNu','admin','ak_3da6e566e8efb21e','2023-02-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$addZlAcrRf6gAb5CO5ZRNbTH/5up0vK9i1rRawY1bv8PnF.O4v5lr','user','ak_602db7ffa2367ecb','2023-01-12 10:15:00',NULL);

