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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$W3PWMi2Sx6L5yVSPp4x.bBNPBiQDQzbVoe.qoB9W9JQN9BmfWnGOJ','user','ak_79529723f4390756','2023-11-21 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$oIKcvMc8DW9G1OCbMtDDQxlibtrXQNDvzRGkWbcmb.Ca.f5puNgIi','admin','ak_1b40f80416023b9b','2023-02-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$d8Mt8/iVYIT5U/W4MhYMgEeLHqxpSLOK/Jcx7HYOOnJhE3wFI8Idx','user','ak_53d2cfcc80f0352f','2023-08-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$s06AsThmr8MmT3gLQRWJgvwnioyB4AWmURBm8diRhrTBIwzSs.Cn/','user','ak_acc8ab9a98b38b11','2023-02-27 10:19: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=45946;

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


