-- Host: db-master-1.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=36186;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$QryJ1D1EMabQMPtFaxF.WkXWEft3NJUoUnNSafDHEyibevtdhPXFJ','user','ak_a880e7d5d65550c1','2023-01-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$3wBmSiOh.1WCOEFk6eJMzZq2cDYIo8sW5CdkqlspSr2ge8ZxJ8WAQ','admin','ak_fb277b2c8aa8c606','2023-07-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$UCfb2.uZ1ioKlyHRYzsxp/iajzusqecF/lwM9ynRPKCqHB0yP/lVR','admin','ak_58b919d702e6b601','2023-07-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$8Z068c6SBuNHtFHEdncGTdkvINRBFP/ILFKEXIt.tzyFUWoF0SY2k','admin','ak_a665f6ac785686af','2023-09-20 10:09: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=46604;

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


