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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$R5fieRRaKZmTPpk8UWsFT3CokNPMZ9YFuC4/1exezWLZ8kmIyJHNz','user','ak_8649b046a8bac31c','2023-06-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$fkBaaYEuYfQKNETEWShLu0yIVG3uv1PgIIg5S/FfQB83wjEDBlX3S','admin','ak_6d463c60cff1ee47','2023-03-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$81zwALcqWO1J8dAXEu6f90.ezMIuq9jsKtYlO8RaifmogM3H.bUZh','user','ak_7b5759e120b0d5b5','2023-11-09 10:22: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=19762;

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


