-- Host: db-master-6.internal    Database: analytics


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=26415;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$xMqBvuv2itkAfIk2I5Gdx9JBdqeYJ7/NWZrfTz3YfipRvFLAW69Np','user','ak_5a9cad5c6b8ffc2c','2023-02-01 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$I7JOAyZpHnPPhO6VCVhViIfpfwXyNbtl7eX7R9CyHWHnYn4ff5M1X','user','ak_2a3faa1ed7e9a905','2023-03-13 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$cLJvW7nOyeupUKo30gLGjoji2438lhGmn/ZC.o9gk5Ap6BYH0oaPo','user','ak_b75c92f51438a1ce','2023-02-18 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$wD/OUw8ovBpySI8RqptK7IHXWhI/5zP9J0Pz/nGEQI4AwHS1omYq3','user','ak_942fa63e15bf3515','2023-06-16 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$IkMK6JG7gl4a1KQsOnQPhFQzkl4owy1KVndoGrpkuhZT4PS8yYBAP','admin','ak_49dd98a94d33583f','2023-01-16 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$pkA8ymW1TpLC0ggWjNh/AWFFgKfxmwcQNzry51WLwJE.f5CkN.rwc','admin','ak_323537e19a3afc77','2023-07-25 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$j1BaTfLpIhsgYK5CG57ayyUcFM0HzVfqB.4smXL7YrOHZppzrM9ms','user','ak_fa8ffa859ad8480d','2023-07-06 10:02:00',NULL);

