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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$uhCocWYO0NKoQ7ohZcWyhzny..AeWO/qJz0CwNfk2YRBkmI/Sm2qY','user','ak_07f8494a5c472d38','2023-06-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$4E1UL.GF35ZEZ7oXGCfwJGaPH3/wxmITewerboEcBQ3XnxGxiRBDE','user','ak_1e877da4b6e7cc58','2023-08-14 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$XN1/d0om3QDeWzBiTJL9on/i91SCK1oBflnzyvIr3Xs1vbv6NhUBm','admin','ak_5fd8309777ce98b1','2023-07-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$whvRHuahM0T75UkQ4v8kwl2Gm6veuwI4qAd/o/00DYAu4z38mA1P5','admin','ak_b8777bff5b2cefb9','2023-11-07 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$7fms9ucPBdttxi1FRrCj/DH3BtRsxh6N562EmdkWZWfg5q4.65yKN','admin','ak_c82245b38503ecb9','2023-12-12 10:14: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=21871;

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


