-- Host: db-master-5.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=2270;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=49355;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$JFKtVfnTSh5LWoWhwasQM7GLIz.1R602U2I2CfeiLKJdUoVXYXbTV','user','ak_26669bb1d385dc65','2023-01-16 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$2zp09Q7tuLMnDcRdGuulSJUP8gqAKTixFgiB/Sepsg70/XLFz7XND','user','ak_dc27e065989b3e84','2023-06-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$mUG3gjeIBPfLvKDew.ujGMhvsKmfklCjG4uG1KCDpnW1T0DaOhDS.','user','ak_6b68d24a89ffff8a','2023-02-04 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$tVNH/sEFo96p9MY9PmPLBwao7tHJLdsL9VETJFkjdEXQtoOb63w.N','admin','ak_a00715a44c1dea87','2023-11-05 10:16:00',NULL);

