-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Oj3rypWetb72U5eOa8OZuigVumTbXHpDgAMlIJcwbnWeTziW0ciqT','admin','ak_bbfeea3d74d63dae','2023-12-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$d87Yhl.ZUL35pJLXlDYcspr8nMSckBfuf4j5d9O7dA1eFptmVVUjP','user','ak_c932840db87f3e61','2023-09-03 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$bw78GLKtb.cqR0RH9Sce6X9.ASjpTrgoWLJEDTqQX8lbKFBkZVXBu','admin','ak_1bbaafff2534b6e3','2023-01-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$GURYqquvw1wDHF/1tncETWU1BjbbAzqKasNH.Vq9Ihm9t21UtxtuN','admin','ak_93420436080c000b','2023-09-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$XSqzbXMAwdjnh/20Zr4FAE2nOhCPVOKkRbfNbq1GpZVf2e0T2xKAE','user','ak_297eb4bffe9d9474','2023-08-08 10:11: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=27181;

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


