-- Host: db-master-5.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=22390;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$IMBAc771ag1NDqbwX9WxKFvSHZy04kGpg3ieUiawt2CntNqwYfZ6S','user','ak_db0754d36d1df767','2023-08-01 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$N6HO7h5t45aehCVxfrYvjXfQdh1jOuJwYVBTXfDSRTB3XGsR9r0dy','admin','ak_7de35f0f9b88bfb8','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$b6gm2/.mRIFtKEfxlY.LQT0GzSYO0VknotMK.RSzglkNunEtWAjHE','admin','ak_b893838901ebd604','2023-03-18 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$pAcvG64eMLCWD6S.Kd1spuK66Wn49UIQj6n2Z1AkVIeOP5qLnI95.','admin','ak_53aec539e31ff62f','2023-02-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$uQw2sbtIRqb8h7tVgpl89SE4lMcp3VtPY6zv/nWsfTUXn4AGsBIvv','user','ak_1f24884370a09a40','2023-02-26 10:05:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=47661;

--
-- Dumping data for table `sessions`
--


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

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


