-- Host: db-master-5.internal    Database: webapp_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=50973;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$AwJjPwWKhTRIyE50DANGUWIkXDfRQcWiJ5dUPObSzEYQeGU16CODe','admin','ak_d3779f1f9a79ad52','2023-09-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$bQjqd6pIqZgA/CMZIwaoA6eqztJS2Rau8nNZHqC1gn9xKC5PhR1yD','user','ak_6b10400578a06653','2023-10-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$uxplRylMZ1h5D47ZM3/kMx.WusgOjSdZTVLOj67jiolA3sDFfckl5','user','ak_ccb58d948dc376cb','2023-01-10 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$NFMbxB8RnGNMf8.ENl/geTOw46kLSG7nVxrB833YM7bPjplXF9la9','admin','ak_5e0e4c0d8175f1ac','2023-10-04 10:14:00',NULL);

