-- Host: db-master-9.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=4556;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$bTvsd97rh2bcCYKxa/LgdYjsYRDG2C2ChS.XmSQ2T9JFVMPeB2ROI','user','ak_f7462b693305c488','2023-08-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$wCf37VChAJRDzp0UwprgEDR3h1O3o91EQZv1hqd01QsBiScuNXIW4','admin','ak_d7aa80b1db476a30','2023-03-09 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$he0598/95.y9zTz0QXUfGYxuDKkvrj0jMhIRJTFb551dPgdgLwYfK','user','ak_93b59d89f8d502cf','2023-05-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$AGVh350RgEViZiIlK.cLT8nt/O.smwvDQkqGVryvN2rbvgZ4NKqCC','user','ak_12fdf6ce46bf7dde','2023-06-08 10:15: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=41444;

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


