-- Host: db-master-4.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=34029;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$8VGmwUUViyWhGBINjI8k16YXSefh6PF21fZIjrK9908xMnmCFqEnr','admin','ak_a8531eabca398172','2023-10-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$.Qmt0PL5NE9YMt2kw9GFjX3ha2a9lmeUg7eqLcdz4gGnOACf0JOCt','user','ak_c55285f6cf415fd5','2023-08-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$tPWT2ts6GI57yJzSOdS1SQpRJEQvYVpzzzJbZpJPgaz4qJMt6QA7i','admin','ak_f1c061ee89f44bf7','2023-04-01 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$lYAwQ7/v6a9VtMAd5FlWi8V.QqTg6e.YjFY8enxSC7ddUxnADpR3F','user','ak_abd3f263d8882fea','2023-04-20 10:07:00',NULL);

