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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$UhAGC1HN.xz8yNFMS5NXEI2V28yHe9uvV98hvluhYbnZM4ysmEjai','admin','ak_b50d155328e28164','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$QJrnULO/8c28UUikDEUeptWwLDyRe.k2khfGJvgeIK9NX7oH2SYPW','user','ak_bb31427ed53f125b','2023-02-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$immUDKaaZ4tAOJ5WxpcX2sFL7jsJyeW6PVe6ZgpllVlCPu4P1sldK','user','ak_8b1736bed4353637','2023-04-12 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$T3hba5GyakPiAIK4P.F0ZFudrat/DizNaSHKXTAAXXl.AR3j1Fx03','user','ak_802af34f8d4ece82','2023-07-08 10:04: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=23009;

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


