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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$p.Zd1ouCFKxI4fbd4djSlnaJGWOp3NuTJPBNlR0B42oK.P/OSi7yc','user','ak_6e5a780a0cf544d8','2023-01-23 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$p7eb4E4IcIeJlm/SYEgaEAgIwH9myLZDRIw/V47BEZJyt5kPqpBld','admin','ak_2491e021cf0af131','2023-05-16 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$VV/goOi2p98DorpiVEyaTFdhJFsbQfhGKGh7dv./yq0lvsmih.GuS','admin','ak_92d0cafaadfb8214','2023-09-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$8BoG0qeR2mlYsp/8Pl8kINoIxecZlv6jaY5WbvM/yS7gl4KrHcXN.','admin','ak_dd675ccab5602286','2023-07-01 10:07: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=39643;

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


