-- Host: db-master-9.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=2444;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Noc0yTtzKhAzykGnZl9lAypKiKho3l1ymWR0zBkwyqYHYn429UWf5','admin','ak_27aa03a32bcbd20e','2023-12-10 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$652A/cGZrHPMfJAMPEDrJHlwnVhhqxyugaNMBKJp2gNtzwn68BwNY','admin','ak_d828499d5119a4d1','2023-07-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$avzAYITtlgXzGwyXTf7yPW/mKn89DbXwL/fkhKmH3aE88V6uz5U8T','user','ak_519e51aed7493ba1','2023-02-27 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$9NIK5ueJ9.88R8RMqR.aaVSi0BqpID/XaJ/EELwI1Y0lTnbpD70VX','admin','ak_563d848f4cb394ce','2023-02-05 10:08: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=12009;

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


