-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Ca2R83LNStLf7/7pSsSwrPDA1vXLSSx5zgUwatUnvd/fVeDBrR6LM','user','ak_e2b66fb4af304ff4','2023-12-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$4tW/QQFCmRJZ7HR3agKjRha0GzwPXWH.dUdlINaPnMX1.oWhBKGpO','user','ak_b1981d7f5bcc4b17','2023-01-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$X7h0al7wjk9dWCGImC5q6ZZ7pCKZnspFSYhaduaaFA3shfNeC1NCp','user','ak_aec2886f1d3d21b1','2023-03-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$0D.14D2vWFBnWqklhGM49NZiYrZxfJX28BiYQW75L14EyzQCMlvGA','user','ak_c2fb56383e0d03dc','2023-01-10 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=12080;

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


