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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$53EfqoJCEjkrBWeBh5GUDGk5OvmFLksm90p.bJsW4PaSQM3wIi2oa','user','ak_9eef66fe3da0d666','2023-03-17 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$oO2RmVZpueGr95U1elx9HozT.ctln.y7S/P9HMIOOhbBJff5Id.mR','admin','ak_71231e01e55084b6','2023-01-20 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$qtDdN8lFs90yNuaJSA0APPrTnv0/O9zMVHe7eeG4AEz1CqhoMHMge','admin','ak_a753e72d91341f77','2023-09-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$BzWyGM5IQ00o9fXpzP4eHW5O3W2ZDUL5oQ5yJZ643ybPPknVOMSRK','admin','ak_fece6f1405c3b492','2023-03-10 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$5lalgvl0VWdo5jrkMUzGdLzLKef6ttW0Pt.6n1KzAMDajxmRx6PBD','user','ak_b14a308971a8827c','2023-07-17 10:09: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=23222;

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

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


