-- Host: db-master-1.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=5460;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$UjkYgbUpEFoQcn4ihjwCrVWECcgz2NiwMbjJrCu.KTr1VddDoWjgu','user','ak_19ed23fc7599d1e9','2023-05-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$O8t4hlayfiRug7cJgJsd6LtkpVjWhN2N9bvQrVCumpL.DtlXM9LdK','admin','ak_68cb75e447438ad0','2023-03-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$WbtX6Nuf3.ebgvpogqEtYTmZbvcrmK6DUn..ssLcPpdRdLUIZC5lN','user','ak_08e79efa75c2a0c9','2023-07-26 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$X5s8Ex0pWvlmD05byL14UtAUh7ztjz9XQF0pCN1m9ypQBziP0hnQF','admin','ak_9db6a14c3bb21979','2023-10-04 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$VRI2xf1b/jlRRuhZ809Y5mSI57a5Gkg0FM/t7O2V1YCENCVbnZrSS','user','ak_a24240e7d6cb2730','2023-07-08 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=31298;

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


