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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$W9ByfQwCBnFgX2LnmkF5ayCjZ8vHM4lzTYkHAjvG9veSxz2jpClN5','admin','ak_ba0350e8c6e9e993','2023-10-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$D3n6mUsAl0RN99czqwi7H.xNtt2C/bhJgj9wN0l8wWlBYJGBWmh6J','user','ak_a56ecad0f1f0d5da','2023-10-18 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$w4jy.tq32G/7bTNHxkWVy7r96QkKgjaSyqWPqh9zibA/EHm6XzXf4','user','ak_675f7e9754a2de1f','2023-04-14 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Q92U.pgvXeTy70ZWxVe1fbMA4YYWg.r1xlC.0NSr3WQbfFAseq4pQ','user','ak_18813618245a1e7b','2023-02-23 10:17:00',NULL);

