-- Host: db-master-2.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=20548;

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$38AhZj1MsnBXZyqBdwJt.KnusmJsUxuYZnZ6jNmssUINACPx.eb6o','user','ak_e34ae6ad37b1d79f','2023-04-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$SaMn9lf9VXBI2H8uXU.On6AFiTw0pSJx9ee6fWI2wxhoL.WyFXBSp','admin','ak_e3077d407f9eeb8b','2023-03-09 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$QY6C9GnLyuPeQ.yUIAu61XLL9xXNtPrMzjSTGcduohmr9ownJnrEj','user','ak_ddb326abbb8c0ead','2023-10-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$u1KOBYaG16yMOJ6cXJMsjxMrJZ2nk2JOZXxbxMY7IC54KDN5s6/Bj','user','ak_eb687326e5503c5e','2023-01-19 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$dS1RQuv4v7JEL9hAqGXILCTvtmdbADw1S53KBVzEbqHcc0u1TPZbO','user','ak_5454870df5d0fbdf','2023-01-05 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$qv.w5Drxxcwn9l2gt44w1SioM0TfBDS.fG8fTxnWAD75KJ5j0hLmQ','user','ak_541d92f351be3c70','2023-04-06 10:23:00',NULL);

