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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$NG3q4usbMq7Drp3dKqnPiyIzspPtI8a3XjlWx8jCNAMKhmmEJMuIJ','user','ak_310321bb242051a0','2023-07-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$M6VbnPk7tGtyS3CR/vILSpk/j8RWV5AOloTK3F4b321yQ.ZU10Lnf','user','ak_af5ce19c09683027','2023-08-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$B8j1O4vWTqwQjj7sRVDsCRnsf2BZ09uDOQSlvuTn1MED775a710vV','user','ak_4e1e28bcdc48afc3','2023-06-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$z0GZ.8q9jCt.p.6F9y3nxuu5..T5KVhAt6cYbMp234ADUaplMKevf','admin','ak_038182025b5fe460','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$4yp.eEPpXr9nryLhqQZuMtABKIaVnZ1L6.xrXge7Ho46PGhx/pqLE','admin','ak_04b692d0db7df17c','2023-08-28 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$99Vd3ZSE8FpyvO826o7PhNiqTrqR1D9Qzj3JQzKGFSEtVHBMKe63C','user','ak_93ae6f415f1c24b9','2023-11-19 10:21: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=4317;

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


