-- Host: db-master-0.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=30521;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$NNbt2KkbY5QYgeZOhwt1A91bRxJXyRFk5S3KjRN736wRZc/pwbyoz','user','ak_4a6942f334250380','2023-02-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$q.4hopxpYq8WHF6maOKhoZZRTNUA11QezbFVX.hF5gxj1CHxZHHN4','user','ak_f29b63dbbfe54e2c','2023-08-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$yBe7QEMfJgrN.6hYCAN/Bd1STV2fb6Unp.6Wa/1BR1QRRGbubXUB.','admin','ak_7f0691834bc36843','2023-10-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$GCWuSatNGn1oayxcoACOu2.cTMf.QBUOjA1qbgCAhIOsM1UOc5OM0','user','ak_b51ccf0f6b91dc23','2023-06-01 10:06:00',NULL);

