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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$LDrexweuKfWUINu4dhv55BNpjSaBNbDOfUkY8E1Otn2nHw5r7Ykl1','user','ak_a754fde727a33a07','2023-05-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$DBV/Ely7e4R3ydwZAbKMt8NpFKOI0kpXQ30RpoSmh5syAGd3VPsPC','user','ak_01a90910a08bddf9','2023-02-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$s/htCnepj5D9VF4r9XNfZ6rOFKBPxw7WgrE8uUqYJ6Vzo/RcJJTNI','user','ak_6650b571c3c4394a','2023-11-07 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$o669wwLGuUlBs1ag/xlmWfCBjjZ/2N22aQg3l5WDjzmKA/9yahs90','user','ak_9d03cfa57a8a6b3b','2023-06-20 10:13:00',NULL);

