-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$yJHnABNWpG1lKbZzil3HaIj.TOcjCOVSB3f2bqA1WD7fS3GNkYk.M','admin','ak_c89341f61a47dcc6','2023-12-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Ns1Ik2v6iDuPjNWiLz8A/unwioz9n2xbqy9qCbKD5flYk2AWiLbfG','admin','ak_07f870ad16a9fa55','2023-03-13 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$I2pHYHc8nCQv.Ze2ISbjce7h0QW1YpJnvvm0SaSkr71FjpJ4eukbm','user','ak_0d3494d23d6f44fa','2023-07-01 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$TqjT2CP/qVEh1lC2yq1wfE.psdYntqfzKYEfuLH1QGVOK/H9JA.yi','admin','ak_95f83d230a8662cd','2023-02-12 10:18:00',NULL);

