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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$DOd7..Mv6baD3u1CNO6mbU1dGCo0FvhMtJC5ogBQ.r6mlB/kyxTrU','admin','ak_9664c311f4547666','2023-01-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$.VhDpN5djr1Vj70P1Jfgmh8zIL5hE9oCEj7wtDx5kcq47W8UwM7wK','admin','ak_b2a4d2c5960356cd','2023-12-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$vbuzDoLxEzvz2rc6Qtb9Xe8vIcH4zVhQQJfyFJeqQez3yS3COy4XQ','admin','ak_29b69fe01b58fb44','2023-03-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$cyOSJH6uXCaxVhXqhYCPXgt53qYs4P5oV.C4cPJjyp/dcbAKttv0S','user','ak_a3eed58f6925c839','2023-06-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$WDKJjqUC7Wmobqwz7nC0AWtG83Q7G0na3d7pwxiXughJsGQr0yNYi','user','ak_46369d51ee69f8dc','2023-10-08 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$4/MfYmEA6LDebj3qeHas8edyHtnob4Q4gn.9oL47izCbBOTnCeXVT','user','ak_4f0fb03d9d5ec960','2023-12-08 10:06:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=34149;

--
-- Dumping data for table `products`
--


