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


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

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


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

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$HeoUIrUyQ92JYCulj34gWW11F2swpoicz2vdN5zvDi0Lpid6Oj2pm','user','ak_6a8a600712325cad','2023-06-11 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$BsLeAfokNhe0jtpu3KkUsIWkJ/a0QIFFJs0fXKx45503JmyzJki0.','user','ak_5f0ac34c680936e6','2023-12-15 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$pvfZqGmMkAj.SwzKJt.biGoe5x7EBW3qIQszaV94WFoXP25trQymz','admin','ak_b935be028030adb9','2023-06-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$glo9i3Y/.4rKXy78a9x6RDtVOz2XanIXZPXQqE55/F7HJjIhu/8E7','user','ak_7f9bb7048d198f38','2023-06-25 10:03:00',NULL);

