-- Host: db-master-1.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=13236;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$bx2DiMWUfd3suNY1jXL13fwGzF9DyRkUG8EdSDwhBRIzM3X9wxHul','admin','ak_7790e95c86896530','2023-09-07 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Z6j8frD98Jbs8wMIAWBGu/0pJtE1uyPc41UQNC04bs7mZ7X4dYLrv','user','ak_9cb355e7b0aeab5f','2023-07-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$cNvDqwbMMK8zp79TvfZOpVnAvHvsQYCrtdCyPJSEuixl3s1qdZETl','user','ak_fa0a347103241159','2023-09-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$NkY6EeaHQ1y6n7R9DF5l.iSNZtoAUZbZoaKQOsl0XnEjmAg5/jfwU','admin','ak_31c9bd23072dada0','2023-01-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$NynxpZLwdajb0W1oBvhbeSKTfjBpL0P.8ransR/WH1aTEId2G3USR','user','ak_5fe1b15b5967b4a2','2023-02-03 10:03: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=27088;

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


