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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$ZTQYKP0n7ijlpE9J5zWv2es7ca/qrZGu47MjTaqK/7PIZCZVhXep.','admin','ak_47f8c150994418c9','2023-10-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$CmkVP.mCwiF8IHjv7nmIjxJU3OQ4C8Uulg13zAIulIxBvFcxjEkvW','user','ak_6e66b6e6b145900e','2023-02-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$DmfSqeqbtU/pZuC6vD/Xf58TawH8E1AjuFmwDkIJfuhE2DdxJKhoE','user','ak_b4e432a7ba193b1c','2023-06-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$pnlZiYbpZfnaz8x3RbfQkynzyNvuOmgsVI9HeOwqxDx//8HyRIgAi','user','ak_7ff2477703c71e62','2023-03-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$KEzWBa2jWaBhcvp9OP4WsThkPpEilazEc2BmbwrMKreY82VTpQM7p','user','ak_61ebf192219348bd','2023-10-03 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$PufTpLWITT05tfAkEbapitnkOS6.e3KKblLxecUOK82tn6XwFtn13','admin','ak_f9342495cb480e4d','2023-09-01 10:19: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=32536;

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


