-- Host: db-master-9.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$wbc.Cthf6yP8xdOs30/W96cglAntcX0uJZVqQ9P4HTwhL1NG/.tYJ','user','ak_b8a7b6e750d0f615','2023-04-08 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$iZaCQnLDwAOnWFX8UShUb7BMgI57fsny9rgSDBukQwD3fjQEWk42B','user','ak_19efc3149d773217','2023-02-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$7bcxnG0yJDIXZp4kM6EYn72go0X0z1iflSa1bmehywTd/a7C.4HSh','user','ak_0243201d13721fcd','2023-01-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$kIHM2QTKByY5GFb3H1DRQclDm93PuxJk2LR1XsBQ2QsyEg9gXyUji','user','ak_c27ffa4cd0a8045c','2023-06-20 10:05: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=49337;

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


