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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$9clkdWQ.MSXDVmCR4PMK8x4q7t8PN.QBBHxtLamvrUU5bO/ODu3BP','user','ak_3919e8c0ebacfbf2','2023-08-08 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$EByPmgDG/xEIavES7V83rcPfINy2/HsIVD7.irpy/OQVGQPEqTbvx','user','ak_dd7a229936e16185','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$KG/czGOvDexW4tSFgy95iW155CrXpOGLALYkaf/4fxoSuf/26cVFu','user','ak_445ce2ddeabdb494','2023-03-18 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$ZFI5THaionuZz3BCJhxO7WvXP1hBvBV.DsiYMLHLppbtI0n7EYxc7','user','ak_0403a6ba2a83a64e','2023-06-12 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$qvlo3aQJZtnz3MB7hpR6cOPllDPE2Ie81U3BIwUvvlkzJXJ7E//MP','user','ak_484c696a46484572','2023-04-09 10:02:00',NULL);

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

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


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

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


