-- Host: db-master-2.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$Fs3spNYlk7uMQ4Q55iOxBXqLVrac9CPa9J1GVgIuuLMgwRS5bGcjB','user','ak_f68f82a47fe374c0','2023-04-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$pKpFdJGpA22Np4fVa4AKqFKt9T2rxS3PfSwx1ZO78y/spVg6qXjGn','admin','ak_fede8cb767a3357f','2023-02-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$70UzXN9Plx5AJSCsYuFIoT5qAP8r01pfbEnMacZbBB6j0Zy/0SUP6','user','ak_7f0abe36e4e60c9c','2023-11-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$RWqgSEbteSFdWmoQpeCcALyvkVltCsbuqDXThKwLWpH.twhzcgUs1','user','ak_d8610b0667567f20','2023-08-16 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$AtNECme.GEo8uBKkXKnYkRmQ/g.mAgU1.U2p5dJP.VJ3E7n0zvkD8','user','ak_623be0df25dcf339','2023-06-04 10:07:00',NULL);

