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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$zHWImnCqNVZECa1zdlhYnH2y2WSBGWVWFoqcYMDmD6lQC0ZllPOjE','user','ak_7c31976da87e1db8','2023-07-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$hx4Qyb0108LYRkxN0tghdtKHfQHnxg/tO9Vr5sh9t6h.8ulwVZmnI','admin','ak_78ba403f7dae292b','2023-07-26 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$LQCPl9oFdjF892PoHqbU2ZciCRZIqA8kxGxqYtoPyb7btUlclEHpD','user','ak_c6ee06ba01118d91','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$0q7/t0u1uAulNaUcPBuuwuG2VrYdCelOGeZor/nWMK5mZgpZlRw1g','user','ak_5e3c0db9eec14a9d','2023-10-20 10:20: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=47562;

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


