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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$oUmIDL52fBllWwQ07A47PwoyttxFjpODIiRKQSWymXd7woXlhatbf','user','ak_33311c1e5f727ee0','2023-02-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Papy2j/.bi8LKyd7YlOQSqxbOiJisog.03XH2/jZlf7yt258bdcFs','admin','ak_743a9650d67583f6','2023-04-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$7wIoxlvQgZYFAZopT7ILB32Hge8iI10WjxonQhoyqmo4etV6DUU06','user','ak_984fe62faedca3de','2023-03-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$K5yTrVgqGivOYb8d.unCRxZ5Lw/CSkpVDMi9pEDllt2x7lnBhG2Jz','admin','ak_c576187fab9c1f37','2023-12-03 10:23: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=34967;

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


