-- Host: db-master-6.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=30470;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Sdf7aWgTy4GN89T46Ne7YvcK6vART18xMquazdvBGj4m4NhHJ8H3e','user','ak_d8e786843797c1aa','2023-11-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$vJFCXw7K3LWsfC3GXggNg2P5hl.T5Eof3D48rE0C0eEUmleezOU1s','admin','ak_389eebb4fd5ef194','2023-04-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$RS2yEn3lC6wIjkx2RatR8Mp8LGGF9qDQ8N3XM6R0jcemn3U/pCjWM','user','ak_4a6e07c802d78758','2023-09-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$2SKYRLqFUrLAUKVfSkKJOiNkF6VIESkDN7TdbJfpUYn4Zg3foB1Fl','admin','ak_6cab02d96b50d7ba','2023-11-15 10:22:00',NULL);

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

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


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

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


