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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$iAcjFNDx38t0aNOnrn557HzB9wOlh372VKI0NVz74OKdGKpLCdMQ4','user','ak_0a9cbfa085a07888','2023-07-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$bCDwcArxHy7ABjLVZn2bizRcu0emwguqbGgDjhea4SRzVKrgdkhkV','user','ak_8103eeddcb32f931','2023-10-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$wMjM7lnoMyDEp/TyRNYmjmuZLkaf8jRgssMyOyw1/m6aZEr/u9mVs','admin','ak_9f357fe299592811','2023-07-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$zyqDcCkojlgQdNzns1WMMKMKaJpRvp7.N1gR3pKfL5r/3r1Sv4vtt','user','ak_f82175fe212e1972','2023-06-07 10:04: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=32726;

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


