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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$1PBiee.wX0ub12kDNHJlxuvc0.ADmRTx4Cd4eP01Gz9yJfqpAEhOk','user','ak_feae187507553c38','2023-10-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$52P/KZNVHHRUFuaBygnBK5Y3YTf6cnQ2zgJdbgzb96YhKwijDcD3C','user','ak_50e2aae99bfecc1e','2023-05-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$I2E3Di/ATDkkOjx6cHWqo2QOWciZ4NCFCQRibaRp8LFPgfOThu6//','admin','ak_ce971aca1ec5b1fd','2023-08-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$DuWkzXWhzysO1BhNGCsgW0SMQAwViMs7vIfclNWdoCIAjW3T8VKTm','admin','ak_8a239c907e4c99f1','2023-05-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$zy8u9Jh1TeiMIuaJ/4BL5DloeYr4j9MzxlX2xBCB59IK.ESOYvMyk','user','ak_225b6c5143268b68','2023-03-07 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$fJg3DepkluVSSQ/YKmYSaH53grJqmOczYtUDPxY4Nxk5pDMQki.XK','admin','ak_a2589356c18b6765','2023-12-25 10:02: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=38574;

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

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


