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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$Bm3J4qtb9OCxt19MvYZRbeAxJAHtVWb.hdNb712xq1Y/5a7eIsf/F','user','ak_56dba8db3f947d3c','2023-09-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$coaVWlLYFbvh25nHoibz2Pgbn2lEOPQ5sO0DC7FjY9U08Pu/y8Jzw','user','ak_f75547ec14160485','2023-04-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$HuGDzCpzduJaYakiPoiLHd5jRVn8SBVTmL3WdgmzE5PkwJkz8bG.D','admin','ak_f58da2db16550616','2023-12-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$o6WdvY7XRaTZot3XIdXau23MleNFUVzFcnGpmHIABU80NbrMNLSHO','user','ak_32caab0db5f6feec','2023-07-08 10:12:00',NULL);

