-- Host: db-master-1.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$M21JS9kgI9gNkWtDfFaRolPVlUgKTp4UUCxByqCkhedGOVHt7jxvx','admin','ak_c7a0449c28e3a9cc','2023-10-24 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$12/KWzS15P79VoI6a84nzme.v9QIPRuikJrUmiITu9N4fBI40TBoP','admin','ak_018053d16bed43e3','2023-06-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$KHyrX2LiQun74/DDJ0as5POfG8LgtFdz534MYxZbzumuDizPcJWCz','user','ak_82d59ec74e09ff6a','2023-03-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$y9V7zWJkf9XIV7h9UPk5s1MfZdTQCqIRZ8QwoitATpFwdmSsRgKrX','user','ak_e6c2103215de9cbd','2023-05-24 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$48WVuR2mduvBCC5c3nMR9.y7x0Tl9iFV7DD8umfpC6vK.XuBnGgWC','admin','ak_2b6be53376dca167','2023-04-18 10:22: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=5439;

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

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


