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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$vSyUK8U2aIswoJkn.QT7hcOBBNThrCiHBP/4CIfLZbfYoduyJtkpF','user','ak_18a26f7f4da3cd9d','2023-02-02 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$3M8BkpKvJX7dTM57h/isTpD0XmmPBPlsvaYxCTQ3mUfdZpF1/Oq0U','user','ak_a1d01f0fa411494c','2023-09-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$8Ih2T.BOBbrf.aUwQbPMTnrM5.TzKZfRJW9uSHFAt4toCmcyhTRYb','user','ak_a93c971098ca8493','2023-09-08 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$3xxOwYQkX4kXSBooF/NEedSGBBGt3taKybXMvHZpky4M0njIp45zW','user','ak_07ecb30ad1f2be71','2023-08-24 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=26862;

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


