-- Host: db-master-4.internal    Database: production_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=43839;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$hngCTUw6qBp5CdyLwRE5Zmpnyor6Eybsr6oIZe9iXh844B7icWJNs','user','ak_19d758fbd4028c0f','2023-06-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ghWti1ImiAQ2JxlfsZ/OnxeP.CAnpX1BtbjHneyBH4CeSMnqETsOc','user','ak_bdd6e7c253a2501f','2023-09-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$LcS9xihTlDEJqY9v8wx65OBjeOr1vNfMhhN4O8XhZPO/ke7uybPiL','admin','ak_55cd6b8863579681','2023-04-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$aDOTGJb4IQJwwOA.cZWGO2y4qs8Jbo9pXpIi89DoKVn.CL3IVSR4X','user','ak_424173a5e0365e0a','2023-10-08 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$tJegeVg4aHJBrDqG83rkivKkW/JUGZVCtD443C8xvq.a3RS6aDpcR','admin','ak_e1bfcfbdeb3686d0','2023-09-24 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$J5wlz5ScGbBopvLoJ9oQcNtRErmuqNHfFAH.nybj5dEp6IlaC8kgE','user','ak_b77e5f6023c09de1','2023-06-15 10:11:00',NULL);

