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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$JCJKgaYBOn9lIsw6Jt3BYJySuwtfqFm21BySLLrVF5mN7YGZYBNjy','admin','ak_9d2620298acc4ce8','2023-05-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$zQIh.HP7f67Y2IOPiHFcWZumWG2r1/Ls0kTnYOrwmJ30PEDS/CWyf','admin','ak_66b2282b0269995e','2023-01-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$2KpmngDJAMUIjDoRRm8ylp9ugZaRVFG2gveteQtBaj1LZ3PcYNsWq','admin','ak_4c1b182fe06c412e','2023-08-08 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$NQrP890OHmEwi2001E8hul.QMcJL.Qnvt2WT8mD3XgxFgc5dPUnSj','user','ak_264ec19e7a3cbb94','2023-08-24 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$jpyQK6Z9sjukYWgAX3rt3msZnU5CJginAUjio/7blx8qQep46dRml','user','ak_ca01f5ffa53a2037','2023-12-13 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$vgx3AlJ7.BnZYOThJy4gG5pMURr6Pphgz1F7gPK8pkGnCVHi82awa','admin','ak_dea60ea719c3dfaa','2023-09-18 10:23:00',NULL);

