-- Host: db-master-8.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=23894;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Wf15KjyOG/zmuZcs/3OdNQlgdDPNs03PM1JfvHziMOMyNJ1lkGBtL','admin','ak_0ddd27bf4c93307d','2023-04-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$DeN8hJph4Z81lxCRBHv/HPWfviJYFcKk0cfCfTOUNuocF9y490tFu','admin','ak_ee677be22af82310','2023-03-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$g3k/8ZJN.0AcKTNgJLofCXq6yQozV4FFeDkfZGscT6J6YToeA1aE/','admin','ak_efe58bf455209e46','2023-03-11 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$IWlwDk8VKANzEuHrGLKHUTGUC7v9bH.VljXHdMquda3pfxRVkcN8R','user','ak_95005b7dedcf2db1','2023-12-01 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$HlZzMedXHCRPTgECNk8IPLKtAL2iT7o4mxeqA8XIqhqIqof.PxFh1','user','ak_3f0d2f75a9b02522','2023-01-23 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$XpBLng0rQ32Gdqt70a9ypiJUK8QWUThecmf3SOYXEQ17ezfHdvmle','user','ak_ee5827b9b92ebac5','2023-09-12 10:18:00',NULL);

