-- Host: db-master-1.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=12931;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$i8TO.CXxWe8FiZpmlAgD0gdohpN/eLgqQ39k7bAem2a7R71J6tQxH','user','ak_51baf13aa27ffeed','2023-02-16 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$qeHsxycLnsJr8TLv0XY8UBziAoADrbrSdiscupKJlYoDBCvLNZMQA','user','ak_143fb1cf0b5e84a7','2023-02-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$xav7vRpKgqndqULuk3v65HF87Qclzn5ubbvB1XAb/XipAPRDEKipi','user','ak_b36020b6390ed890','2023-07-18 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$txsCwQ6taFhQPZ0ZjfroGUK9Of/sNILr2/lYIhx/umInePcgT3SF9','user','ak_217cb92ca060f130','2023-05-19 10:23: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=48024;

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


