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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$FIxFZ7nOhPXp8H0Ccj1/J3pbwr1z26B1YApiwHGTzx.d7qgs8PHc0','user','ak_3fe75cf6f728e56a','2023-12-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$a0gIxg5.T0C8USQXJMJ0yPisBDebVGU6heC/ieQC0B2g51RVkU27O','user','ak_bd06f024575aa40d','2023-07-22 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$SpRB0SKYW7dg5T1FCbzBVcgRbIXawIx/qdsvydtW6UHmEu7WB7Yco','admin','ak_527aa8c10ce5a3a4','2023-05-02 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$f2vR.fNpTl3hWjWeoCTbXlBQxudzfdHnJW/Cv3kpT3FtDRel2SC2z','user','ak_14202c383e91203d','2023-04-16 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$5fGfP96bJ.aflAxgRIa2HdS1BROHPmqlQ2Jwnp6gIPnBn2e4hZLD8','user','ak_1cdf130637da4007','2023-01-28 10:00:00',NULL);

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

--
-- Dumping data for table `payments`
--


