-- Host: db-master-8.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=14281;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$ve.yvq8uCAnpznBfFjtkTva.HcrR345WfyrJenCyQaCSUKDv4GU7W','user','ak_aa6f0dbe934c8ab6','2023-03-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$6zbDotmt2hyfyiLUtOGKC9Ozeenis/O1oQimyYVb.3Xg9Z7uNUiQf','admin','ak_9b3adffef996e0f8','2023-06-24 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ARyQReJPaQkOB1H96W2oY.s3DhpLTsIegDKWKBp98R6BXMrlGhnmc','user','ak_38882641be979ded','2023-03-19 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$3b7QC6CIF.vCHoXb2f6xjHKAKPxX7GIEa59JjR0IyL953Yc6/TuqY','user','ak_0c84ddff8cfb842b','2023-03-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$xtEk.VDZFhawKJsiWpoRD0Y.1Br1xqPhWexl2Z4Pdygpss34FDq3S','admin','ak_c3b95cac9b1b4a20','2023-03-12 10:05: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=34356;

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

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


