-- Host: db-master-7.internal    Database: production_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=29877;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$zN3nNaFL8gZVSU6Lm4TS.YHjDuba0DinfDWnCWRcP7jnVQuRh0pXb','user','ak_09878436ab40e930','2023-01-12 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$4geTiHuCfHA0DwBZYiS8xpjV5xsIIGmLM2QKcWoLLRbwp00IPmiPi','user','ak_213d76e2d7dd9085','2023-08-01 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$azcfbvAyrosJoV2BPogEO7up92RX0/pyONDjvI6Q3qYt.fx.KQQ.W','user','ak_eda3e746c20d9db8','2023-02-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$yRhIxVxlv2i.InT7VN2paLnIYRg6eesA.UAKVzDBKxHbrAEPEOpo.','user','ak_563305f3820e2e84','2023-02-09 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$.X4cK3GKnufyLX/wctRiyDXRzIw9EV15GZ98wa1W7pnSA1z.fTAqJ','admin','ak_3eb147ba02c28376','2023-01-19 10:21: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=28223;

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


