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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$34wiAJOKIIIBVkTsyo.tJc54Ja6mmpNV5dp9Pk/rpaGOVLSBc4C.6','user','ak_79587207ed9abc78','2023-11-14 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$uirYkZqnzBm85u4dwqTEZmt846q6jW4sXutKEgQfBJfIpaIcGkvzE','user','ak_dd1eb1c00d9e4f87','2023-08-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$hPXwNyK8pZii1D4kTvsDYZCc8f9s/j1/BmTFdvaxYIT6qxXvr0w6i','user','ak_5deb70528198d25d','2023-01-02 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$.QigrMOZAK8HT/aq3Smmqfa6oyVgR9WPV.sP9zan.oPazRHQieSEA','user','ak_35798e8480cd452f','2023-09-11 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$0ElBCxlgQlUSgmeepxeFIn/GwbGVISPuzAAodHTJdnd3HewORUcm1','user','ak_8c5522c8abdb33e0','2023-03-20 10:02:00',NULL);

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

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


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

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


