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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$apmF5APMTplm5DVDDbOtA/2k3sonfFVqA4ayIcNpVKt5cpGFhOOYD','user','ak_e4db8c93eba1aa4a','2023-04-22 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$SZ3DTvcEksWrvmpA3xx.UbV1JneH0AVbbLoTP7LkBaUItL1MBJnDE','admin','ak_befc5ca513bf63bc','2023-03-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$9Mp1w177mn.GgZAc0skHkTUtY4uWOiIZ5OHf5xn6/3pecMJ2C9aT.','user','ak_944c58c67313447f','2023-05-24 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$xVc52Wr4MGwnoqvnWUVtxSYxncf1GYJGk7SanZAUrz9CsDcpoFSim','admin','ak_70b62326c6570931','2023-06-01 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$/qxfptla7jTJj4qh1eGMxOdSaOSMAs3s36ROWbZ1k40Xldk84TMuu','admin','ak_ed92d59475bc4cfa','2023-12-01 10:01: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=34764;

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


