-- Host: db-master-5.internal    Database: webapp_db


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$MgPpj2ZalWG6ehqeXXNQu8CZdOZKraM98ujmNHsrACStYL5q/RcRq','admin','ak_72955c9fb5b49c85','2023-04-17 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$LFHAX5YNK81nH.GuBfHW9o.R4GJYkIIJFxv0Ahj5WpNIymACJcuPc','user','ak_5cdbc26af0ef8567','2023-07-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$7FkASxDdwsQNv2ohpyHUJtXqEotlKAaMMZVjBrEDQwI2qSZCQrw8n','user','ak_56b9e975667b2001','2023-01-13 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$isrG2SJxLs33OO7TJUX1oJMAMDGnflnrnzfOuBkJqnC58dvztcVK1','admin','ak_c360edd3d560936e','2023-11-18 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$IxTFLqH/WzKD3w6R6VoKYtrcSsHHEqlZMs8olUk3lapCxgkx5EkwX','admin','ak_a2d4762c6574ad6c','2023-11-07 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$Ykz951mL1Q1x5r52Os4V6IOSt/GfPuBPNsvehCoJgMhaxWG6Fg9Yz','user','ak_a9308ed523a94298','2023-03-26 10:19:00',NULL);

