-- Host: db-master-6.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$DFzSaeEAgpdQfHIDwQuXPhSAlojGZPdSUu0PsJS3GAXilcQql6Wk0','admin','ak_f99e9cd05adf39ce','2023-06-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$b6d5Gyb.yny63Go6JhxIo7oW4YXmXM.J65ZiTjN7EZvJUPEbfU3Aj','user','ak_fe07befbfebb4e3e','2023-06-16 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$lAe1RcllzKmj1PTeOY0arb.cN53XgLnOEH0yU8LdBn8ozyzDbBScA','user','ak_23c8f903af0763ec','2023-03-14 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$9/F8oVfAz0banJODMktKw8LyHjrzn7jv1t62DOF0YpJ4fo4icJe3V','user','ak_3af4b286e26ddaad','2023-04-16 10:12:00',NULL);

