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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$A0znlHEr6I1E2utVxLdOeP.E9EqmObqbnZV/bjsIvi8d.3l6iBtLh','user','ak_b3f9e0f54084f915','2023-03-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$cK6N3PmkzCxalYKo8vTyrpdMpSsr8rJJNjm4Y6KHqabzk3m05jHcQ','admin','ak_d1240a01f92f3e4c','2023-02-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$MZvTCxPday4uJPriMxyuUPK9ssQAwHpnS1C8hzxFrryq2GJOHoXLR','admin','ak_c9e22c25b343fbef','2023-04-26 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$UE0.jZVe0AQvQIorEsivxWNs8YIERDuhv3dl1QbH4whLOUwybS4Jz','user','ak_8ca968278e2202e7','2023-02-03 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$joM/fNFPUaLrcl.Pe/zcXZngjj1IfKPv.D6eRmrKqorTUObSQly3d','user','ak_9c9d598aba2857fd','2023-04-13 10:03: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=22252;

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


