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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$MBWhHX5KmAXhGevVf7ZHnTCKuPs4jQ50KSNarKwhFzKpaHr.463bb','admin','ak_27865f68fab5092c','2023-12-16 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$rzaUPfIZPC/cw9rnTqE7RaaxCoS4656CHuz8Y8xUSTifoSFkJEt/7','user','ak_7c916d2a712df686','2023-11-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$8Gy3iOXLsME8QZkjD0UvRet.JxahilKtSqR0wddNiViUm0fXT3J..','admin','ak_704d4c0d5fbc9614','2023-10-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$fAoGerTHw/bdrIiVzKPTTBCc9T26JetdaseORSyWh3VYY56fdOzHH','admin','ak_903b955937c42d81','2023-10-24 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$e2R.GmZVqgqrVZu.y963YPazPX1gJxrokiWxJQea6aD6NsJdVaaNo','user','ak_3424611b79592d6e','2023-05-27 10:01: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=27992;

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


