-- Host: db-master-6.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=31386;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$MKSvzcLmItyju7YG6G4sv5JKwh.ctEhgeXTgwftHs6ixzgjzcNOYT','user','ak_67b31c6f2b5e0e8d','2023-02-10 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$vgaklMUpL0Wdnn7eyxqu/CzevUo0cnTcov4J7FR3CLGf39aRpNWW9','admin','ak_44b5cb225f6f890b','2023-03-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$ltLVUFKH12DsRP/81lg1pFCC/xEruY469eUI/vikciBksnBa1NAUz','admin','ak_ae2f17939b37cf19','2023-12-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$kIbdo8sepUo5mKYq2jHhVPMJCKFPHksdcqeCQayt7sYS22SOoPlWk','user','ak_25e49730413da45d','2023-04-02 10:09: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=6415;

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


