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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$rVDa7ku29UMOFx.y179NWTny1W8gQREwgDCQWqXPmBJW/HBqGBjUr','user','ak_5c4c6578321d3a7e','2023-08-15 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$A7lo79kGrzcJp5S9MKCN6YA/8cKstCNRnvdOez2wu.SFugcNODI1G','admin','ak_448ccb7cf1ce7936','2023-04-17 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$o9MwyEaBPQwE4ckHaJaUH8OANfhAcs3LoRgxQe1lpvtLwcp5oRn3w','admin','ak_362ba9b78fe262d6','2023-06-05 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$GmZCSaFB2jwoigMUV07v4bB/JETCd6vAjazao2BXv8c/w960CDYy6','user','ak_fcad536054a6d5c9','2023-09-05 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$7sWV/mCHCjW1xm2w2GyEKWZvtbnOiP0m7fyPdhzFj9HQYsOrSXIxo','admin','ak_6116b51f2d5feafa','2023-10-22 10:03:00',NULL);

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

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


