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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$BbeUpyg5CyiJORENK57virCXY4qpDRWUXvvvws0tQfO03R/13hLUx','user','ak_856bad5d2f142846','2023-01-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$4Mw2FlvriYlgzw1y4.TWxlvOlYXkJA.jVQEygmK5vdm.fGEAwM1LD','user','ak_7166740c455c0262','2023-02-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$5DVD4BNR51q7ebCMsKEN.D9/cIrfcC52U1Dj.ef0b/NycC4WGR.0P','admin','ak_bc4b82da41e628db','2023-09-05 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$kLun0h6mUVJMoAmHv9raxBr2GETzn74h1mIK/RxVYc8ZIX9g2xO4k','admin','ak_a4964c1d7d405992','2023-01-26 10:13:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=15661;

--
-- Dumping data for table `audit_log`
--


