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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$GtflErKbk48uUQgX770wfvLahUv3k5zBOvOoHdcFVYkHTXicNzXyi','user','ak_2a3482708a0a952b','2023-02-18 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$wHSn3rBRISbBMZnODs22DNC2Q4Ykrhwp/X6.IJZdXgdJSSldf6qtT','admin','ak_6dd4ef09ae5d3aec','2023-04-09 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$sFgIlx12E1xdWxLClvA7Ffl/2.JJ3ns60QGl8vTRVmVnk7ErJ1q3Q','admin','ak_9d8f6e2d9100cd2f','2023-01-06 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$1kdJ/Cvd3p/TwoIjBdMXc/V5sfcaIGycbnaUuzuDrVw2KZr5bHEzZ','user','ak_6f05e380b3109fb7','2023-06-04 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$U3LdSS8BjB7rdmqi1gImtfvZTVJjkWwUUOa4nxggOebmKFUifwphs','user','ak_11703803374abe0c','2023-08-15 10:18:00',NULL);

