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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$w496gzh7iHYjkbc6c4kJF.UJuTS1wYRwwSzkDUd7Fj5C1H6gdIzc5','admin','ak_688500c9e2836aac','2023-09-16 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$acw4nWjyy9iPM7/hy0AxdbhqzDKcnaZT2.vA2/euch.IfFyr3b1ox','admin','ak_6134f392d96b9720','2023-02-24 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Nl/4iKgDR5JBlK5FZkfbOXtncnVyAW7BTRUTsCFIxsJH0Yl11T0fD','admin','ak_38e6cf06a00b67bf','2023-04-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$DSpcix.ngVJGqlaFmiMJROYOFkjO0aTdkXLWlqxZrTya1Ala4rokT','user','ak_e6dcf82f77f7d6fe','2023-11-23 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$EIJiEN56.Ae2Vp8hqFGnpXe3BmtCdlpVu2Zq30QNf1lzKKAah6qE3','admin','ak_166ecd6b378dfc8d','2023-10-11 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$nFabA8JjbhzdUZG9BwSRF4qXMKoZbnO/6uReOc1TX.2pZFpKP04wS','user','ak_3dc6cc0bc6b81dad','2023-03-01 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=49375;

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


