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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$QBQNaoYZaqZd25eQYRgTqOX/.kknSor96gRDOTx12U8DLjYT2D05j','user','ak_24d17588a4020c5f','2023-12-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$z6X58KPaZAZYu9Cc3Qw/URyFU1QqjzZjWreYu.ZpkM66/zQRtw3We','user','ak_c9deb99a101635bd','2023-05-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$XF4JnYI.Ngvhcuxa8Wbz1xyYSNsvMp4dDwEg5Ob8.11Ukoriqh.rL','user','ak_551968a6d7acf094','2023-11-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$7xSRQYVp9yR.GyUuwumjk9h64Qs7GsX8Sw3YZBsL1mQ.LFfRdIYLB','admin','ak_8548a73e6c1cba33','2023-04-06 10:18: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=23685;

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


