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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$WBbjvsanE5kxVX2vEjhd2Iixk6eDMBZKf4dCK0Tb2K8U2nrCN851.','user','ak_80bc5b2475e3ee29','2023-10-20 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$anaB27I5MzZWQphfp4GVM4hq7tLu.9mLmWDgVfeJANyHPHCL5ynAn','admin','ak_d4f83205be912b01','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$7bc98I59q.kbbqc4me5kDJ58Sw9zYb0tAMFPsZMxb.Syy7fLYQ4Up','user','ak_cf107d322ff75d2b','2023-03-07 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$bF2K2ObjQOEVX//bLxstv1kHkXZDaoJOZHBQOZKheZZDMmVJ3GKWc','user','ak_605ae31ff5bd1a47','2023-03-28 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$YCiS.oN8qhzoiq7YCllN2NCe.bhtrpTFGv2hvLoWqJyMxhj4P4382','user','ak_a69766e51ee7483e','2023-05-06 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$9/yeQ0BoFoWNVmBpxqG8CrhCYHOW9.HbfHNxGVjhT/vqRfXSN7wR2','admin','ak_38d654a29263e0c7','2023-11-28 10:12: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=25219;

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

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


