-- Host: db-master-8.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=26838;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$vnY3UqDgGqijm2/Hr/P8pG/5UAUm3usXKSL73OKV1V4YcKFg.3Xrt','user','ak_f440c3d3fa2516fd','2023-03-13 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$0hHgGf5NvMdT1ssV/0lfB8KRWrRn2YfN2AKkZg6T58kMznT/dYKnW','admin','ak_b8093980cba81cbf','2023-09-21 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$1BiAI6WBVfInSfqe7Fv.TmhQb.mTypJm62KYiPLCAe.beuNJz4CyX','user','ak_3b83e1cc2b0c0347','2023-08-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$WLyVgpzvnuPWIJOAeVHj5pJ2bW8InfoHtWV.qH6.Arku5g4RY449X','admin','ak_5e1ee0cef31e63c3','2023-01-04 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$U3YBr.XPblQJYf3J./wOF7scEV0vaREfjTwjOFLkpktmIbVLz4MKC','admin','ak_12d86538218033aa','2023-07-12 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$BrvQFEX8fhAhOy0WXCAhRVRWoLf39eUgse8.sHSh/kC/RHxPQAsXJ','user','ak_f535d841965c3bd0','2023-11-20 10:03:00',NULL);

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

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


