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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$W/itcnCBI0EuPEjKt3zS7i0ukUBP.fFe8wSqD6.RnTvM6QOJOs3.o','admin','ak_e355f4bd23f80a16','2023-05-13 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ULEiIxLhpztwFnCQiL8EO7TOQa.msoWuHXsxFVnz2mUA3WBJyRruI','user','ak_a879812402dc198b','2023-05-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$/Jke.iL8LjhDVH7sHv2JL1qSQL6JAAk5iRJSIsX.2Ip3aO01w3igV','admin','ak_f92055560ec7f707','2023-04-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$QCf6UUR0FCW9Ly/Q7nJaMnNI1FkFSLRmLfZdOgry6VdXsJCVj/vjk','admin','ak_1e12199ee716a6f3','2023-01-13 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$0alDqw80l51do2ihc37g6SJvEwEUhQ9zF1JZaKbwScTrDRrvI6Lp0','user','ak_7ff980647e173372','2023-07-16 10:10: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=6460;

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

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


