-- Host: db-master-1.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=29815;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$kcDeVEwDe9jMbxyDNYRi.hIBbdQccNIuvfBtUejt863NO6XZEedU6','user','ak_1d22b963e8d8e408','2023-03-22 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$D9yiEqqFydXO6flCjixstWRStEcI.y/fsQlagvxemXwaEZxZHTxFx','admin','ak_9fdf561649ca9cad','2023-11-02 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$t83fTiC1KM1N0EaTagKUvPfys9vCIRCGmgZtxlRwh8wjRhHeeqsEB','user','ak_fec07fccea2d5128','2023-01-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$wuEim.NKjoqKd3pHCPBsMFJeJU1bH4u.l9MhvJtXhtY5Sz5og.YIQ','admin','ak_d5d698a76575495e','2023-01-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$NVNynwlPBXlZa4Uw.of599meLS3tWD4w/yDAHZPuHctfd9edkAJLU','user','ak_774d0494e9f02d91','2023-10-28 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$rfhUE0DRFKNgglEwm7omo2vW1VYa.ttnVPDOM5RSXP.EO/zTKQSx8','admin','ak_d041a60b3109ea03','2023-06-27 10:16:00',NULL);

