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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$ze3gUnlDBCxR6c3q.OboKSWCQ1E4W5Mtnjs3yiQJoiHTaps3ojnWG','admin','ak_5571c3f733641ff9','2023-12-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$/L4B.34/yepYPNOs0AQrXYWl.C/3IQi0qO44V/Jk.uqN24nJJc.Ho','user','ak_fa8c85bc96015af2','2023-06-26 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$/.wX01RL8umUELy3PI9ZhnBpMr.c0dGWkrh46Wq1Dd9w/MrCHLlGr','admin','ak_c3852a8ecec1c805','2023-02-23 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$cTycPz/9lo45kWk.dJ/aUr21micdWGgpaf0y9s8qW6m5fPQhCc53T','admin','ak_eebc145a3e6bf0b4','2023-02-21 10:09: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=14537;

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


