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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$le8PmaZgeR/R3ykIb37rTx5ie0yNf7YLTPRQixpP0Z9iSWdSLHOOl','user','ak_6684eeb360b0caa6','2023-01-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$F4nN5JYNNnWc/rzoZIF4ImsGc2rWNt/j923qBBE/H4aOTD9ocmA3/','admin','ak_1fd0aba4936d47d1','2023-05-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ldEMIpN5kzWNsSc67qoTBfWSROprPqo8rot25n.NgV0U7NbF.38QM','user','ak_46590adfc0ed7f1a','2023-10-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$e3ibgH2ABlaenRvWU1UpLj7RGNw8LZwLRfE1IVHsEYdyXC0cA69w3','admin','ak_6f1e738d93e6c50c','2023-05-09 10:17: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=20858;

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


