-- Host: db-master-9.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=1844;

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$HCSU7YzWv5qo.6aLK.h9lSx6JzzeiMiktgMZ/hx4vlcNEFTAol6HT','admin','ak_65b840c3742f3f1e','2023-02-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Sl3dUOdkbElk8tpsIkbWgw8gsmfs2br8fkTgMta8lHVCpq4PPUwRz','admin','ak_b15a0a5cd9c07aa3','2023-06-16 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$6fWcFnJPCpSom8Xwvr94fRh.nHO0NT2ZW5i.yJCcURggOUZkbE9Pf','user','ak_867271c2f1172a55','2023-03-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$IA3N.lSVn3hPkYxdjukhicq2Zvmn77zGX6OxcoG28NrYRVE0tdn/e','admin','ak_5a39c4c187c57472','2023-11-05 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$u51t68vxezxD9y/xld7JIeEsrmU.HRrbrtNuVyA0CQF084Lr/nSes','user','ak_b7b8df7ab9466530','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$iVEiGewC6sPOq1ZepyJk8feLRfDLkDQAjxhPwPA5VZ9c08rlTOBmh','user','ak_266e8abe95acead3','2023-12-12 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$eCVIL6g8bHHVJIbXgSem/.jYOgg.wB.e42OPVDG2nikxX1EOo5zQw','admin','ak_d0a3e4dab2bbbbd2','2023-07-25 10:20:00',NULL);

