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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$ydoQbyVN5zZmeAXmX/7Og5FByxqvbGrwoC.gmDpZiwLbKH96NZzM3','admin','ak_587d7ce2a514182f','2023-09-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$us6a16srdQNLTQ.CFoDBruJ7afFfzuh40fMCf4sHlAaaRg18yvSVz','user','ak_1b6c0554002c0ac3','2023-04-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$tE7kOmOVherAs/pvbvbfznlH4s1zLCjghifEk./a1CHd74/zRStc4','user','ak_1f7952fb367ccad5','2023-04-11 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$gL2mMpSu6d0TMXLBymusVhgA9DaZmM5fpz0soRg3SEjKXPK4jUF5k','user','ak_4608a171d60fc1ec','2023-10-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$pstUTkeG6Qnxak4Oq3PTJoY9iHScHS5mVIlGeMOxDdzD70mtYZhDd','admin','ak_5255c4916821161a','2023-09-12 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$GZJbUuyVU4bJapMDibfNtQOI6kmFsEtE3i1FnozB0/aZe72tGlvd7','user','ak_e9480f7def432075','2023-05-15 10:11: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=20029;

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


