-- Host: db-master-4.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=17316;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$JgjzpK5hglpYd7JwYr3tlPTLIP4enmU92TrI8ygBLqOk4laJwoYcT','user','ak_af2e443c0765e96a','2023-10-06 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Ilpq2Wk/ZW.fAuV4Vz//I9A69wLQL1CeqVrbgT05ldXIQ02F5bADX','admin','ak_a45c7ed79e76b734','2023-01-03 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$NYFbsGHkGgIyOka6AiKAQhdFSIHJhSkC/iAypz0./ZZjqLNFkC6x0','admin','ak_cea1cd5b8972e93f','2023-04-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$5/6eOKt4KoZQiilMuWe9EXCybOJ6HZtxGwRLn7MB9.ZujimBoJ7Q5','admin','ak_8ae0aea0801df34d','2023-09-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$3jUuA/rMyyGRrO5d3JDARNc9L1MewcdTfsRFixZHjislDjIldNYeU','user','ak_b245096b431dbad5','2023-03-28 10:09: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=1907;

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


