-- Host: db-master-9.internal    Database: webapp_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=2330;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$v/nHY5hpZViyks6auA66AILgqPE5Zls8U2LFp20oCb3s.8u3Aysas','user','ak_4edd3de53223050c','2023-08-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$s1n7YeQNL3xjAr.GtThOPUFXG0Je1cgxmEl0/wN/JF1TYNMzDFIv9','user','ak_2c8c918af99daa76','2023-06-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$nbhdwJ11gT2NGDI/4ACwfUq9YqG7QE0HDwyTC.BeWfxpOXvgICF5o','admin','ak_21217ed4dce5fe65','2023-03-24 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$qP1oQ4t4dMYs5oKYM/dofavK22kvs7dQi7OWKgWmOqF13Zf.fixUV','user','ak_d1f6f077df6c243d','2023-02-12 10:19:00',NULL);

