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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$qpPsvu6V3QIk1NVNMM0nNLK50FGRmURJH6D8SEEvthw7kZ8DzXgye','user','ak_de45f021dcaa39f4','2023-02-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$kY6EA7gT9jGM4t3aSUM6csGcjEpckSLCo/ZyRBk2WY0XOyI2ryEjW','user','ak_d1d0efbcd9393d7c','2023-08-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$KHXs9Es62f6XFOGNILnIOOsEcWDIyK092kqq6CDHMq9ozR5YKyi2Z','admin','ak_d6e346f254026939','2023-08-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$vVrGbxUyj0sLLn2oNo1Nuo/2ilQMqh4/6riLi9w//XavrQbV9nQFc','user','ak_ca3dd4eb515d31e6','2023-07-05 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$oektGO48fqHVgMvfK3u2uvQNp5F6g6eqtSEOYztIxWSjvtXpfQKVr','user','ak_f66a5e91576f12aa','2023-04-08 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$Ky2fmXXH0jfjD6G.yNaHyUOlOmel3LaDu7pRDjALVq9aX2h0x5.wG','user','ak_bbc2bd53f486c641','2023-08-09 10:23: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=8937;

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


