-- Host: db-master-0.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=10421;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$0KndlxFLXSRQ0MG9TSvLL1eyHg3waIGlUv0maqGCYsoXKRECl0foL','admin','ak_1328b722ff9e8268','2023-10-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$AgJhnsZp5T9919yOTvU0Uv61xVryi6IyLyB5iHCKqRfja8BIHiDtS','user','ak_f1ba5e376e252bc2','2023-06-15 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$MKDzs5fbELczfpByZfuZ8pfV98KwduinB4Kjvn3wIRiVu.gyfJzBt','user','ak_0fe1c4116dbbf151','2023-06-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$weNhzfv1koMs0Amc5tlK9CFafwR62nX0m1mJzD0.FyXJSW277pw7k','user','ak_c8853be5ed58a353','2023-07-06 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$zFLH1DQzU8L0d3kvh7UgsniFgfNfYzMSWFcHIVlPh6ZXtsz/J8HZr','user','ak_a0bbd3b56c079c1b','2023-02-17 10:17: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=30313;

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

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


