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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$puQKcXhJk/gtvbhhWQ239AZ5Evz16k7dFHDVhZCKFVDcsl9N5jwte','admin','ak_24c68bb05b707368','2023-04-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$1CHMiZ4eBo4DE9ckxsGBkKEXegRdTViKjogS8vm0cKX1tbJUeCs3X','admin','ak_7151a2be8713e071','2023-09-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$B0Dr.b6ogySblb3nI9itSdA2Pk.tuua0QNj8Sj1yOmY5.tygA6xNt','user','ak_a85b85a7f4897160','2023-02-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$JAeTr/V4uXs.OZ02VmIiW7wYZXvca1XwnA4DmGyVRwc.ryIiAyG12','user','ak_32d29dfc17699e3e','2023-02-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$jcW8S1r3vpwWZx4H975OZKzGM6Fs4F3.A2UfCqnYQ0Ht5obfRn7Qa','user','ak_eaf98951ac48ef8d','2023-11-01 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$LRNlPtf.RfHO/a0rrMwkNJK6A0/DWyW7KzPmZ8mDoCQq9hctk0DGS','user','ak_2604aeb4b782b855','2023-03-08 10:02:00',NULL);

