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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$5bhVwkgUYY/PBp247YAbCyL73IqMvkGTaFRhSEkcOUP5NBx4nMXdc','admin','ak_a58982a4de6cb064','2023-09-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$D6r8qrnDyeBxNpNhklirwMk0LsqkGL3.A8/KuLUtVqE/J87apmNU1','user','ak_be1307c05c2e29b1','2023-04-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$P0gvoLCMm8KlH4JdOE6dlWbyOhgvpltrUo.izANTGKj5pLPcB05cI','user','ak_0863fa094043f45e','2023-08-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$stLxTr.cmEN5G10IABtNh6dp2JO0yMw9Uouxe.N5bw4HfFZVxzwnE','user','ak_f4f4dba9d531025a','2023-05-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$.xXOcNof6GUnl6rndvlkenXofINU.tIpo6P9GU9lJduI.LwkMe5U.','user','ak_30e10ab66889da3c','2023-11-28 10:00:00',NULL);

