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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$eGMJSKqe7aGhptEfWu4qqC2d1XwohxyNtbjshLDIHvIh/JOVFCdKv','user','ak_c89d92445b21f3fe','2023-05-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$i40Qe.U5cfkLZWrsD5aYqCGWggbDYBatrzqqkd.bLneM8ErOosaEM','user','ak_c8a7eb603e8aa521','2023-06-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$07aoQJ1f0IrWN1i1h2cXC2hBAyYSLyEGxsYg.gtgYNv1e6/0Ayk9E','admin','ak_e9b5f96d1e6116f1','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$CfWFjMl0mFB6dqDgbNz.qxqSNnS2kRk3wdG.JbzqUUPDUvIpNYkGg','user','ak_58d96d363dc707f6','2023-07-07 10:13: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=24487;

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


