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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$QOGSHO1ZeplCfEFmblIVMqyShhTyfGJaaXC6jlQXnlWDxlNBEh0Hu','user','ak_2444ca2052578b1e','2023-03-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$G1bPZlxog3nHeIbXtuB89mrae082QJGsT35uyXqRgdmlFCTfTS.ZE','admin','ak_deb35c6298b15fa9','2023-12-21 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$5JVPeEeSNnzP89IiUJHW.TwhrtllnWTgyXQA45DNefrowEW64j3sd','admin','ak_fd0c842aa40a9eea','2023-06-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$syUFTxdtU8zsBrII2s0u36uauczBiZs/pkoUO/mZzF1a2VYsw0fQS','admin','ak_014a85a9faecb9a6','2023-11-16 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$RsV7C35XTa70JKwVvEEF78C3HKHr2/gA1NA9JeupL1V/wsWWkZIvx','admin','ak_f92f1e67c4dc1fec','2023-05-27 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$ojBNX1Mwktj/vxcJB3vTZ2yo1hId.JO/vBYwIkNxx.L1PKPRXdICV','user','ak_ba119ba53794c985','2023-07-17 10:21:00',NULL);

