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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$DSsE1S//VGO8rBMw8Bkgifkx7dToQfGScio1287D.RCrs2J1QMM1.','admin','ak_d75221510813ffa5','2023-06-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$ds8ZsTs/cRkhi22ZILbxCdwUkAOp/p6x88KnktFOvgRpZoDvQGJoX','admin','ak_4c43739d54ba9404','2023-07-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$.Jzdlr2lex5nF9XklDRnBorc.DHPId5WQBBtl5.c3DAnkI2LkgyvC','user','ak_f97b9201b65a5222','2023-02-15 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$HhNUZG/HWbu2Uj1.nUs4gFIbwuU.JG5i/LWggUC3lcEc6yLxHCl9j','user','ak_0e09e4d69f8d1189','2023-01-22 10:01: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=44468;

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


