-- Host: db-master-9.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=44096;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$WTpK5PhxcUI4Yo.gVAFTlaSUvgzrfhXsXfJcAzpJ/Y22QKkWNbBO6','user','ak_c85da987ecd4137b','2023-12-06 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$/7knq0n41PJijAncSF2EhhnmhdlaNmvaxg/48XQCoivlTKDfFqacd','user','ak_6935d4de0ff8d0a4','2023-09-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$2Rs3Wf/w5pH0GJsK5np/fNf9IFrhnuuVVN9znquPgPJACsNCoisDd','admin','ak_2b20cae12452de38','2023-03-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$S2prmAm/IFCACkOY84fCHH0I.Siww6VbJRPJjb5ltBDXk96pb4KGf','user','ak_fd9eb0fcb9f79785','2023-04-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$3wZo7eFKiBhaRzEbc1a4vBNDLhpvX8eSJ2saO6v8wz2vEZ/m8OlwG','user','ak_e143dede73b33673','2023-07-27 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$7irqEAT5JKFIM5dfoGdkh1cUtS.EAY2SJu92NyW8FwcTQJkW8ZcF5','admin','ak_62543dc3629e45aa','2023-01-27 10:10: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=12918;

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


