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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$kJnINtq.95TxQEpKfHu7r3nCB5SNDLN5a66WFFTAy5W.I91jkuBPx','user','ak_69281935ba6b0a08','2023-07-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$evYdAROkLK4RGwbfsUJ7ypiAR4TDnrSKIZtyfblggwYxiNGILLTQj','admin','ak_eb7c816a6afb6473','2023-02-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$/dzCrtaDtOhBoNwBO1EaMskb/v.Bu0ziIdYw2azXJL.qFT8gvsvtZ','user','ak_aae655d308291ecc','2023-04-12 10:23:00',NULL);

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

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


