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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$tZowbpDTpJASbabDTSQbybZVlFX6v/Tmg2aBk2azCGrRBPzcaKNao','user','ak_7d48ad3efe3cf154','2023-07-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$zm3ciZMnHnQAyHMvut8n.kdOATiQjiA7mufsh2wDFmi336313t14A','user','ak_a05c506b4b088776','2023-09-24 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$qqRc3vu/hal0L2ainVSmc.TrRli0AjeA0oskRgw29Bxj7qLXLDB60','admin','ak_d8541be8cedb4f4e','2023-02-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$NVnHkvY6JljJzb565QLEPgKMynZdxETCrp4MrY/BF8QgWFJFqEtit','admin','ak_ee5b1c045b28a84b','2023-08-02 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$7muRI1XYGmn7j/0M/mOmD7wK97.3N8iqeENpEvj5x.fiDiNdU8/XX','user','ak_86473dbe71456381','2023-04-09 10:16: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=23628;

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


