-- Host: db-master-0.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=11637;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$b3sCoZ/n0YaaShrNK2mn.MWvBMQNK4vua0wjH.ZCYVThpBiToY1Fr','user','ak_eaee570b990ce12f','2023-03-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$SdxLrDof.tCdoDbgHNaWY3XOFypubpmrfAcDUq8BloJ4M0bY7LMN2','admin','ak_43ee5a4325354bfa','2023-08-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$N8XjTU9yGtJ0jwOlYJqtzjlrZi28m1LB98JoORLmeJUTBToAyoTzD','user','ak_8b37e19bedd591f7','2023-02-14 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$ZrZxQwBUTvEe10Uy3YR7IN.5Ybz.e0CosxmJz7PheMkzDxLNJGQvO','user','ak_ac09dcc3cab8cc95','2023-09-06 10:09: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=8726;

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


