-- Host: db-master-9.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=43732;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$ELtScsbz6O4LWzKJ0NEFo8pbCWPeu3ZDYCYs9FzFtEYQ9YHOj0NPm','admin','ak_3cc3a6af0eaeeb97','2023-11-04 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$JlpciiDC5w34GSFKGAoo9.TFgpUkvHsIBTBFx.MStT/vq9yhQqjNU','user','ak_8d06b5ea29fe22eb','2023-01-12 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$0kYL3NYp5nXTPBSvVa9iFV1p2erGLH78lr3LcPc2eTTTWkav6H7AG','admin','ak_14404415adcb0768','2023-04-05 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$PyARGZdp.fVOxXKjy0nfiTPVYbCyUpBemWECPBAchyVaiF2WO2UM1','user','ak_d0c8c735f0988ebf','2023-05-20 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$iYpCtEvt/dEWjy0tXtOFMxiliSDiCObQrg6CIOyhkPO4yIw74uC83','user','ak_7faec14c0b8b0be2','2023-02-01 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$wrIFJdRaMGSNW4Jy9xCFQ4su5mJVhtGTDZJU9eSYjkZ4JPdbz3TIZ','admin','ak_c606e597c662d80f','2023-11-26 10:05: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=5164;

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


