-- Host: db-master-9.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=20412;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$lBF7AQ1kUvJRFZcY2nMJMw4ow5CKqEe9p7zQNQ5cc/XJ7/BoJxSHR','user','ak_8626d38d15872036','2023-12-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$xOTHgNDjbctH3N0N2Oq05JNQSooWOCDK0CymH8p6EAXKKG.nwcx3G','user','ak_262791f4d9c06636','2023-05-19 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$/sTJ7mfbrRwmIpJMskqfc41yFd52rVkF80PUZSzkmBpeTLkqu2iSe','user','ak_6ca734c8e5dbf90d','2023-10-14 10:12: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=7892;

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


