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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$ZN7iOWJb2IkHnkMu7tYzrUZ3k3mdPxrU0ya0wA9twtHHaJGBEdFRa','user','ak_1266fe121e32ced0','2023-12-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$yXAG6ChlApZTP4mp2yifppFwYz.x3thAoRNMw/WjWHRYqW.LiQXlx','admin','ak_cb1e2b6435f0714d','2023-01-19 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$QMHQJ4ef54HyHplgVQBogA4Q99pUsu8KZmGZJdpCxw7ypJSMst11b','admin','ak_20b6c15e26c7237a','2023-11-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$MIIMLWrH7sM4xDp.20J6vPwI8vMKllwEZ.VvfxfSIRNHsjTsepndy','user','ak_2fbddc5a317778ca','2023-05-24 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$KrIyBK80Q0nyq1s4f9zG3DEamg8hPv0bcg7iISiStQFXgWnRU/udG','user','ak_f76929d834d789ef','2023-11-11 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$QALuD9p9Hn3/TKLrtpm8o9CeLK02HE6S0uVCrSfHXLLuPp3FrT5ky','user','ak_717e2200efb1a412','2023-07-10 10:09:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=40231;

--
-- Dumping data for table `orders`
--


