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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$JBPY/8ygvONWgK3rym7mStRz8Unu16NHBFlBYakyyeb.w7F.amrPd','user','ak_21bd8990e5761501','2023-08-24 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$LJZpbumWk.lPYj9pJc/J3aJeAHPnC7.sHNr2.BnYs/8kLsTduH08x','user','ak_dcf32a0c5012dd8e','2023-07-26 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$VcD2v92/MHqIzqyYYtURHwtaBvSoUIXSqpdFjwIdajHxgOarz0qqA','user','ak_9b578b133f399070','2023-07-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$hHJvaXxsMFfmppPJ7LmqbZSzFYbJJwLhvDIGAuIHWk.casZ37KLON','user','ak_27c250d06c2d7ee6','2023-02-09 10:02: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=41996;

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


