-- Host: db-master-1.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=31522;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$jlZc6lXD8WCr7Au3i63lI35YNkvH3DKfNUHi64jO3aR9iOyVckce8','user','ak_e9e76c1ef0a0550b','2023-01-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ATykP6.Zf6Bdw6Ow.geZZ1XI4.whntkqXNxaxqmPaDy9Pc/PtYoKE','user','ak_655ba98c59b64138','2023-01-03 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$KOqrRh5VuR6juvGQz0m09OoFBmWBQaps8YRD5zS1zeEf86y4YZqvj','admin','ak_3c964a37e1fafe8f','2023-04-02 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$pDtjk8iVxP1lvcrbrxr9mulq9cPE1cVdwW92kdHdno71/k9n.MN9i','user','ak_a6d53dda52124c15','2023-11-15 10:01:00',NULL);

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

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


