-- Host: db-master-2.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=38366;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=15302;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$CZYEElOthu6zMri/TKLM9/njsV7RmYwM7TzRatsus16g.3nby5cbp','admin','ak_962b5dfb7159b6a8','2023-04-19 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$65HqPdVvXz7IVNjnUdmTIiRIUTCbHN4PsvzkEso04zSjv8OoH.DZt','admin','ak_217c0b02624d0cbd','2023-05-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$O4gCb.PKJN5e4k/heucxZoPShzcVTvDOoy0.76d7MKNSjfw0vjPb/','user','ak_7cbadc74ec65f7aa','2023-12-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$y1tJTPZUN6J4/lpQVXUAC69IDS/R2RdwbLOqd6dVwzhFDo9ZtyLM3','admin','ak_b89a88185c33ce8e','2023-12-25 10:08:00',NULL);

