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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$jd8eCsdlOgmUjE8xuTUH0qfVQp24ZmcOYsn/uoZzI.1.aijkN5P0K','admin','ak_16d9f614f33be778','2023-01-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$PuJA03XMY/SH8AiXHiuATwws5NeGvB9..awz.R4lKKQjdTI9yTsx0','user','ak_d40ed639b3ce913a','2023-04-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$1hfFwGxCtYOwSOTPxzW67WpwfO6MYDXtREnlyTeJJn/HP61zk2bDV','admin','ak_4c33ae3e1fe955b3','2023-09-20 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$oA99PKX0/.hmJv8W3Xer8l5IpLE.cbJUHyiXdzuE/fkh8yLal.hkU','user','ak_55eec81410bbaf78','2023-09-21 10:11: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=49115;

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


