-- Host: db-master-8.internal    Database: webapp_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$rWKoKvQqhQukUi1jNvA5IrfUr2QDr6wXEV9HSbEbQADdOb1hF5yFy','user','ak_8e4bf5a06bf03e1a','2023-10-19 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$PNSOWLj.74EcMqT/yQ8Mv4xP2vykrfpnfJPfyFSFYWdSeDpEfo11e','admin','ak_cd00b40af00eca30','2023-04-28 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$WUkeLm3HZz4a8HZuHmrRL7KZ9AnemClg.LSQJtrPSHhHR5jpR6268','user','ak_08077b0f256771d2','2023-01-10 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$T2tBTLOEu8QIyxKAJdABvKrOLTHwnBS6OKiljAK8KJqnLOs0N6qMe','user','ak_dc56e094318ccb4a','2023-01-03 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$PW.c7mTXM8eHPzc17H4vMydiODxgcz4/VHZu1aurNoD6lQvQXZaYm','user','ak_877b0821d5cc4ea3','2023-01-28 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$SVnDmVlQ82r5X1oTm4LbgCxNiG58RmGrchWqd/ba2JHmFPxj.e4XI','admin','ak_880b1724620cbe43','2023-05-10 10:23:00',NULL);

