-- Host: db-master-3.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$SgWi/A8qty1rJ0x1HxHvS31IGuDNpmRuzM24bH9g3ZEhKc7FlGpH/','user','ak_58ea43d94c5d3754','2023-08-19 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$h1jfcYaoPrMTF6.k2xPgS1TN1PAz03frdSQBIhbfxZf8xlkHGQgPw','user','ak_4589382ad1d9d56c','2023-07-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$nljYTldkpkT7T8RcHiZ1cr/zZkcKDQJMV1OoxOxrEtqwc30XGk5O8','admin','ak_e6579dad33b24ba9','2023-11-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$0S1yz4LTT.HQf6vwgoGH6idUmqsWpbN.Y5tDhCYecBRr1Ey7qk76T','user','ak_75b52b35afc1db9d','2023-10-07 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$2OK2uUuDqRMZ5ogSQluAcK3rYlF4IWB7BP.qRLLeK8dBXobwNFQil','admin','ak_67c4b86a1c1e8824','2023-01-09 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$t.6sls0FYunaJTey.XtSgGo2NY5Lzme84eOKztnx8uVR9WcdVbaqD','admin','ak_cca63ade3aafd7ea','2023-02-13 10:22: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=6785;

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


