-- Host: db-master-6.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=35408;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$aFTHqZlKo8HQMJoCS2JBomTKeZW533xMOvxQID7NUE4768RWKVHce','user','ak_9cdb0b044d4ff010','2023-02-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$YCwfNEwSharqFWfUQznWCTTvB448WFxdHyqFQ/Kbr9j4kV5KUJMvf','user','ak_547d274d67d50506','2023-01-21 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$9MwbwFjsOtBJVx8l11qYy1e/QLx3Sb6uevnfLniLJOjQ/8CDWRswv','user','ak_6d4bfe52b6d6d70c','2023-12-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$mgVP5.9oy6dE4EPyZyyKyl0jiLFScs5ogj4IEhO48b9cduBSOvvos','admin','ak_c3a08c4a74392a51','2023-12-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$sDJyiNAdo1GAuoffTaGQAs1PywK1hN9BXhKFXWL2slFL/7eEKCW8l','user','ak_f202c8f562620330','2023-11-19 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=47003;

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


