-- Host: db-master-3.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=50331;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$xgfkjLqxRHR8WXfbLVnyndcWe4hpOg1p0BgIy0/DW.jcrbHempEIU','user','ak_149f04a5cb6f9123','2023-10-06 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Rii1nLcaq7L3iuE6MBlz5nWD6WyHH8GYKvz79e3VzsTJCStHrnzom','user','ak_0e3ebe6eb219b5ba','2023-04-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$8o.kPMOR/OZjnKuw7aygqMTRCeBZdbRJBQ5yyQ5Av1vJz56mfjL4d','user','ak_60e488c43b7622c6','2023-03-01 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$9sGCu5CToOmdBOE7KWsMMYqpF5O.jZ65iBrTOtA37Bgt3rtIdzYUS','admin','ak_1f60cc83dd762ff5','2023-02-06 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$2xryu7oXAgFbJqeMm2JXadhdaoqWwjuPXZbbnx65fg4H3S/IQjnEF','user','ak_a68edc318f203415','2023-09-20 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$2Yz4ym9JYnsGb8XkLKDE.JJm0pp.5aykMdab92W74pg4pLJmqa6T9','user','ak_465f0de6482bc258','2023-01-05 10:18: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=37914;

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


