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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$8gGQuVG2Su10EmIIzmm.s4BCf1Lf.Ctx.H6EVOlxxiqdggrBnZyYi','admin','ak_246e0d8d7fcf4d06','2023-09-18 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$VSWFV4J4K0CbKzsV5UxnO1zy.XdkrpiqLTCCYf4b6pZJsLa/s5CkO','admin','ak_a390cdacda629c6b','2023-12-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$BZwHAntHRf9Lx6h8jXVb254tz2ktBOmC5AtJ5Ymgv1/E/I3/kiWY2','admin','ak_320697a78974522e','2023-05-22 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$/5mI5KrwTOHHvJDnipzUM4kUgQtYXoQqQfCXwVzm85bNzxSbO02am','admin','ak_c31287fa368024a1','2023-12-21 10:03: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=35593;

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


