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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$h.I7c62uLHAtaJe7iWsQA7dweuUIR3zKSkfuf8dGHl3R.k.LYVw5k','user','ak_d03201887b47f999','2023-06-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$9paq4CoEHaA7cLkclgRF9IPVA/2XKMmtGSV3W9pTsi8HH1IOI7c79','user','ak_b7bf1c64c164ac2b','2023-09-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$hqnFCLE/O3G7yAUL5J3tJGMo7yhjOgmhIjuw0AfcW5NdLvWTVJPlk','user','ak_49ece2e46dab9bcb','2023-02-27 10:20:00',NULL);

