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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$QeLU69ffz2D4VEiojYptwVCGgh8L7ZEjJ1H.5t2TKQ/pyuSqXj3Td','user','ak_d9062944d74605e8','2023-05-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$arapGFCCparI4p//embIzWfvefpGu60cgizk.MHXulKwJlmFmd9Ll','user','ak_32d8690ab4975108','2023-02-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$nLOoeZFh458KYJsrr9Axm5rW7SEA2LcN38FRplSfuzvwYeO/FVzPi','admin','ak_9bc328167e365100','2023-12-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$GhsVvVbp3T8pmdt7XC.d8zmS7cJ0mtDMLnAZXIKQdP60fkj/EBj2o','user','ak_8e0dcdb225447e8f','2023-05-05 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$DfAO.7UUpO/W6Q8WTZwWdM8OhjHOahr9Zf/gMIdvuRZFdkY7OttgA','user','ak_0de392f4df9bdb70','2023-08-25 10:23: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=17655;

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


