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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$0T.8yjhenDyG5kK/nR3w5hpkkjQE6/mv.mLv3TwMavHJHPF9fa2E9','admin','ak_93eaeddef2f343f1','2023-01-07 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Bbr6wv2YvazQtSCjk9tgfZkIngr0ju7WkMATOF.XPjrBJ4lXD34mq','user','ak_7fae2a11b598fb7b','2023-09-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$TwlyjQ8fIW/ovK7gz1Mva1pbcuxCy.ladctw4t/pIERGzCczBz3HL','user','ak_3f42a4b7a80feb01','2023-11-21 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$9KyVTT8uW/DyqLGaNFR7cZDneGZ9EDZIUb4c8fIG1AnW6xq2YMtSY','user','ak_81943fe40e248d6a','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$PhiPCRESdjHnwJlNyCE4u1FdPlILHeg1SBcQBR051rQ5/GFs4DHrA','admin','ak_e038b372f0d91346','2023-11-14 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$AFONr63SvBohh8ZpwBv.FkjwdR.FDPODBER6TSVSZgxlUK3s6yW9x','admin','ak_fa0d5c0aa7439302','2023-05-02 10:16: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=30792;

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


