-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$aCW8oHvcKTWHKb0atnV2TswCJSTmpNQolSZtnGTXgKZSJABSaaT0A','user','ak_ede09cf946035ca9','2023-02-13 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$sQ2MVsWtUhDw5r71Ej8quAE1eYYRVWK75Gh5Q2mBllyKGhcX.H38c','admin','ak_5c52d88de482f5de','2023-05-02 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$nsJTvK1YSyXnMPWQwxovSdGplTMWrgu4KpBghe5Mz0QbS2Jq9t7bk','user','ak_c575337e991a9628','2023-09-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$X0cNchnlix5BOPl8X2EMUbgiSeJSKSY2huued032WR1sQlm05by.m','user','ak_da5bcfc46304ed82','2023-08-16 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$bVgxOnZX8S9L5iaoGXcvOoGrgtAgj7Y6EEKPme/WPIorckPn792oT','admin','ak_daed82bf9f70490b','2023-09-28 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$qR2WKIDxQ.EgR7pi1u89acugM7Av1NSfb3G9/LYSqQCEiytuKdA1K','user','ak_42b970021d114fea','2023-11-16 10:15:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=43578;

--
-- Dumping data for table `audit_log`
--


