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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$nQMDUoBc6PlzTfguzuNJlAc6wOwE3nfWxlmzsF2gkLr0sulNeQDCE','user','ak_7c9d231a2b5db21d','2023-03-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$XteQQCMM.7SPUtnhae7zyzpwUWDPjX8/5VFD5QmWOjs4ZxrCwdIro','user','ak_1b55f802a5839ce7','2023-11-11 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$mEVBSxVtg4YVvY7/iCQZpUiY.ZisIG7lAtTJz40G8SZV0aZHQ6HWH','user','ak_bf1e4a73b59b951d','2023-11-11 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$iBjitGKigcmY8TjE8dkzMZjmLQUxxUfAK2r76JRhCOhmu0PvvDHT.','user','ak_c56f499d2399a86f','2023-05-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$.4jKu3gw9Jy5wuZSVA6am1ZNEs2nxONZLUjp.VdBV4Or.vRBA1CNO','admin','ak_aa0abe301319e33c','2023-05-02 10:19:00',NULL);

