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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$/MJAWwKNiX.GpI1mNG7ZkFO4E4peR/fh0KICw0.b87kNMpI1cm5/s','admin','ak_470d61a6c21d184d','2023-09-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$vkhw/35gfLVsSBIB9usB87O2fDGS1dxLwXgWuCL3Dy0exIc/2mZc5','user','ak_1a54ebd8336911d6','2023-12-20 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$w3J0iCFBAx67M0XXuVsDcmsZT.sx7xY5Hsnn65Ze4J5rLdq1Bgn9G','user','ak_249cb0b90e32475f','2023-09-07 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$HxV/m3bp6XRYGlEEAvwyIXsgymDacVkBYFtfHH4Mdob3Sn8cggi01','user','ak_3bf22553721ae28c','2023-06-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$M3/FqmBiVbu24uhHT5pRgxbxYm0KiZPyPvEO7DXjfWjFuBUNxxIoD','user','ak_da4cddc12c3ca64f','2023-09-26 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$3qhxrsWN2smrkKKKiMmqOWmWBIl/lifuRWeTwK8zrNdIvZP.6Kvl1','user','ak_c1784628d017231e','2023-07-16 10:14: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=45467;

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


