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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$AfaIztw87kKfBMdw2IWdIPNNQvmD3EDFfUMd5cw55MKIKTs8NsKj5','admin','ak_bb825f2cad704f9e','2023-04-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$wiPrp3vARxRupmhNj387oFQcBTKAy4pNsUm5l0vcBIzXZvrLVPEKA','admin','ak_03b8731f59478a9a','2023-01-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$D1ElOp2uEFUfPMJ0IhOKpneOAP4JLc2daWOkYd4BaVjduepuqkIu6','user','ak_51eaab6ea06de213','2023-09-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$cEKX54tEEkF82yaXFRgkx2Pu.lWrv4dxd8H07JIFBG1zbwZX99ixP','user','ak_65043510a50014a7','2023-05-07 10:08:00',NULL);

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

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


