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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ABsfNGi8k2payi98SwQ7HBxNQScC.cMk9RyAAdKFNh4pkLLHaisII','admin','ak_04fb3d1a57bbc98e','2023-09-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$WVM4bAMd0Vh/0RMPadDEC43SfZ5e7lhhyXYydZPDeSVuHxJkuqchl','user','ak_63ee83f1d4bfe3d8','2023-08-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$yiL0BVmMoRVowxbvzBHCJrQZX.gwGk.voUexbbpHG1xD4yOBh.3S.','user','ak_956d8f35e370bcdd','2023-12-25 10:13: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=15587;

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


