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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$IRvTa0U4KtJs8VvxuiigyZHJBGMj7KnI52Vy97fw8hyJhb7VsHcnG','admin','ak_5a95b7dd83b4a396','2023-09-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$5ClztOWq2gcycELyLT9ZgbMfKgz2KSSM7KYeyHd2nzgJ66miDcl6X','admin','ak_6cdc34472de557c6','2023-10-18 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$QUzs24VHP47tsRQ4qLzC71/uX8BNlC2y6n3J5TIHGQEzFp5fPSqHe','user','ak_b62211c97a15fb3e','2023-04-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$SnYkg0DfFzQZgxkvy7pOYWtHukIsuG7ucEXdYsabG4t00C6D3SqFY','user','ak_dbb7b91a6f07401a','2023-02-14 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$A9D4fGg3Gea1hNzy3EneT8XP5eQLKzER8UPHqm.K4jayT/g8y/7/a','admin','ak_ab9f19221ff20222','2023-04-15 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$CcncA0b6TEbY/33ri7Ie0ufWV9X1m12XQ1iaprMu3IP7Vg9cMTblt','user','ak_25531e69f481a085','2023-03-14 10:04:00',NULL);

