-- 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=15399;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$7kr.doLptis0Lv0RE0pajQyKIICJJ5mgXrWLXkGk8lErzNJsUkgnY','user','ak_5d59d956c6e9402f','2023-06-28 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$6gwT2/D74brQ7WxnXQR2Lu5nWamGzlVUjNiPxxYrs7Hz6m1Rg3lMd','user','ak_b68d4e9c9282ff6d','2023-08-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$PfvEizCnjP0bOYhWYkvI0L6ISbhWdK6uzWbCyETgtpcoR2O/RRcTf','user','ak_33826c39fba92f39','2023-07-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$VMrFnu08f0q/rvMZfMbMMqr9NnhCb9BV/7HEO38OlyPFvpsBJoWUe','user','ak_35de5f60eb1a26f1','2023-05-14 10:21: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=7665;

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


