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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$lTLDWOAU8SlTW1.QZy26T776XJblWP28/RChEqIW.2VOLQTALh7qW','user','ak_ebb9ed7b9bf87f9f','2023-01-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ktI3DeZVBhaJnN3ef/TKAqE91LbipQCQyFkRZZVFEYLlHvaSdCaDq','admin','ak_7c2707ea7a37f19a','2023-12-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$dOzJVuIzEsRceu7ljsmY2QLO/81i97ouwygucOtvnT1AZPcU3BSqp','user','ak_3fa119fc1b0b8b67','2023-09-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$/WryL/oLd.sAaR2IsUZdhAPF9tJJ37.5wMegU7uuxczIHkKoTnAVu','user','ak_61921103abb24046','2023-12-12 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=17204;

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


