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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$y2MQBSFJJjFBT6ZxN1eMdBsuDxq.rlh2ixf67lVHE.aIRZm7GEg7l','user','ak_7627754eadd8bb09','2023-05-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$ngME4XPxukFGWyO8isSFX3NYkEQ4AB6rfAZlTKVeacq1Vv6Sw9tDp','admin','ak_bc560f6417b26858','2023-02-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$czVdjShq2D5KtjqPzWbbtmqTWdb5XJwdiNjNwLcaEaYC3ccpB.61W','admin','ak_c0294a3325066b54','2023-03-17 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$djeiDlvPe0yL6bnZ3.UKl1tfha0ujohwMVUYMhnyxHdeknrU1ZUtP','admin','ak_92aa3531c0999e1d','2023-07-02 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$/302t9j8wgMKsC3nVVSy2IKj4.IB13dvSmiFcfVvufOSNaKrldXvQ','user','ak_27840cfc90a19755','2023-07-20 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$xj3.mhk2pAd2gc5kivQmOFIMUX0Dx4sPcvpO0odSp7LziUViNMe.S','user','ak_2cd3e1d67a7030cd','2023-07-23 10:09: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=48255;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=30183;

--
-- Dumping data for table `sessions`
--


