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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$.nX6YDtTzQg.qsstPvLYBYVrGfq0xR.dk5yhc5ESwgShZJVfmQubR','admin','ak_71bbc20ba62d2cc7','2023-05-23 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$uJpHIlo7KNgGELk.v6S7sHy/fNuftiwZ18MkWF0SJBDBNgmuKK9.N','user','ak_5842dfac0b0c13b4','2023-07-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$VK1A4Es8.f6Wo7D7mvBkOizGYNX//tJhng6oogJ0R4A07ike1Pcxl','user','ak_6e0ddefeebe4d471','2023-08-16 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$KvHNZwmbGmSWG7ZiupLdfKX16Wt.kcKoZmZCHaH1QOmDnftCDCQTL','admin','ak_0e0619dd3d0065e3','2023-02-25 10:05:00',NULL);

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

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


