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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$54gDow.YrbyflhFyIqKyz9TTZ2lq0Y8H1jMD0R2lTLTrTIOyRgr4S','admin','ak_90f355204c8ed5df','2023-11-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$Unmzy9bq22Zh4CPt5TxBveQIDaTWwKkb2WSmVzdw.5y/wWFqPDKbr','user','ak_b8ae8719157aef0b','2023-01-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$xq4eiS/wsuEd1cG/PlMcvxporywaepDpZgepntbhvDZ.zn4av2H8.','user','ak_d6949c531d0f40dc','2023-05-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$vFmNPj9gBlU/Yc.XkeqYX0v7h1U3kdQUUwKRFqckymPM.4haZZBsf','user','ak_f6d4f8bf8441bbde','2023-01-04 10:07: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=36522;

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


