-- Host: db-master-9.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=46209;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$3gYM4CawHxYSvyrSg7Yjc2Bhj9uIVu4AHWqcLbkC6OCt8Ee5rtZoJ','admin','ak_c2d53d66220d4a42','2023-11-07 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$hdf1IGTgFVwkejZX9BBT0KaafyRHkz8h9fCOkmsXf.qH12jEXid/V','user','ak_d7ec537fa1b8e032','2023-05-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$GXJLtnocu2gCIaafBs0I/jFUEM2EEcTuGblC8hseEertLyAGPaBB9','user','ak_bf29a73bd384ee0f','2023-01-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$kBX5H40BtuAYosN5pTnMDw8RTkrQ/Dwio3iDyYicKCuljObOtM8oa','user','ak_8b5a84559d732693','2023-02-22 10:10: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=17280;

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


