-- Host: db-master-6.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=35974;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$dU/0VjvPAXrNXKA6QmUP6hCHXZ80FMwXO8DQx3wEkima24BSbY9ef','user','ak_ff198e43da2ecc41','2023-11-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Z2ckDFpWfs7/JV4mZUTMS6xeOKF9Mzz560JyIqIbEDQqLbrdBF/Ct','user','ak_1b7521f95db66122','2023-04-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$GCjjfMpdPnPfzNCft8a3Dr/IBy76ycqZ.y40uiBrk1SOqjZJ7xrEg','user','ak_381257dedd9b36ec','2023-08-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$JPipVOTulZqOH1v3DOQ5ETpin03SQq0imGAzcTxIhORP8L.vproph','user','ak_8395de0be0c027f6','2023-10-04 10:19: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=28736;

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


