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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$8UU52AO6/u/kpGxm6orTZakpeD8/WC86j3Qwi3Ti3dKfQg0Wk7yzL','admin','ak_c4db01a2e967f509','2023-06-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$nFk9hMiR8.uTswu2EUz7oeGLswXtX7QW34xH7QvWgh3T/05OpsBbz','admin','ak_48ea2a7d2e9f4daa','2023-08-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$YhMqtG8AlXF2bFh7lm2Wpe9G8qkk094uQpIJ88ZcckITyoqe3hoSc','admin','ak_170e2dae8544a16b','2023-12-10 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$2BjasEQkR3ATn.D.5pmmYtsiZClUuG23z4/Dcqvl3xs.gyyLucCOK','user','ak_ea79456a6c660120','2023-03-01 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$yotG/TuiqOavpuItTvwJLfiAfDJ2eJBcu490O9KvP6Yq2cD14HLWd','user','ak_75548091f3db6816','2023-10-10 10:20: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=42109;

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


