-- Host: db-master-0.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=17109;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Vf.lWvZ9FVkHhVDVQoj5HR1OgVJa7f8bQh8oYNIVjGVwXrWTWRSYy','user','ak_4d07ab4b73ed05aa','2023-06-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$r.Upn68v3d3/iJcDwshKSK9ZMuh89HqIwuX08P.6hKqxmiZiMZjuQ','user','ak_98117f8e56ff5f76','2023-09-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$HIwxkttFEPKiqO391TUA1PU87s.ae9/sceBUj1Nwu6DqiiOW80p0g','user','ak_5183c22eba229ae9','2023-08-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$xYcCPkmG5xge8OcaipZB3Mqi6OXt0Evyl1uuMpAJjzppgeIV7jPE3','user','ak_ae785b58813ee810','2023-02-21 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$I65sJ8UNRQU68fQLdINLKXk4w.Y9IFSEA5bUprDDGF84ECXvKaU7H','admin','ak_ad64b5cb544959cb','2023-04-09 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$mdIUO6TC8Qc7E.2wWZYqmherIwLaKx.RQnTa4ihstnCQUKyUMqUW/','user','ak_558a748c1bc8c261','2023-05-17 10:20:00',NULL);

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

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


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

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


