-- Host: db-master-0.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=22327;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$3P2tGtGdnqpFtwKrddp4tw3ba7HvF.G2GARufCoPNv0pKDSG1xoUP','admin','ak_62eb1d39e05e0c0d','2023-04-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$amxreH95NskA4CZKtdMWk9Fhl59OYVldLaTUJ51UdHEAvc6zpArm0','admin','ak_d981516a582c828a','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$cV8FOBwIilA2m0y1zrFPj7AXJ3ivXpKZM6d9l5uGToWRjNRM5ri81','admin','ak_4bd0c84cb2ed178e','2023-08-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$QtB8xv1gQN8zWoADqyEraHh9met0.LLHKXKSG4RkUZTNUOnJxR6Qf','user','ak_5d790889dda9bfe7','2023-08-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$v9mKg3bDrgaiotbTjncrjjl263jgjBqbbDjJYEDFyf.GO83OrVo27','admin','ak_07be401a5539484d','2023-08-28 10:07:00',NULL);

