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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$U5gVwCN/u0ZKGsA3EMVojb.KhBGfx4DFjQ0NnlQNwlp8NcZs9WI.A','user','ak_a1111b29110fb52e','2023-03-13 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$1IOLsbZUoYHCVoeSyoyi830DcZMxpONk1Lx7SoRjTXdRjGiozhvxH','user','ak_a7999dd063c177e8','2023-06-02 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$6TBXI1IH6ylfFjv8C1x9Rjr1R.eTKgOsg/VjIO98Mv.cLhdKcSG2h','admin','ak_e0c879b70aa5209e','2023-06-24 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$qaiErvdqQSVZMHbJV03.CfWLpHyQ6n7.HetsHSjkOptBmtpkz8bCd','user','ak_5927468c285acc04','2023-09-18 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$ufDj3KYSF6hIqO.yGktU1xTOJ3WlWnqMnTXplJq/uUdMFSwk.8fbG','admin','ak_6b2d3778d00ab0e0','2023-12-17 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$AuRlktU4elPCwt4QmCgul7nQz4gOa9/wNRHMLa2TkvjLSAwSJpXH1','user','ak_2ead8502989fddcf','2023-09-26 10:07:00',NULL);

