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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$3ON4VQX7Kzybn9Y6znoYi8l323pcJz/x0Ytug8Ge/RvJrpPfLDEpD','user','ak_3133355211147129','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$1lJjrUJP34ONnaFvkz3qTwl2mzrAOhc85NJXPJEaaVCwBMBkkxNed','user','ak_0aead76aac1a94b9','2023-12-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$SzfXng2rjraiBDci5gF2PH3ReOEHuaiwEiLkley5tsCaoR0SzgfgA','admin','ak_a9dcad045898bee6','2023-01-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$UMu11LJUsFk930kIjUmSmo/Z.s31/yYMXKlbWeZ3A7Xp2l7YoXnDT','admin','ak_b9fadbc2d8a5edc3','2023-07-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Mu.AGHil4JnkYNLkcV2US9M7zkGbxf62JeObL0vNfWCWzFA6L2IOV','user','ak_e317e8b9953b5f9e','2023-09-06 10:14:00',NULL);

