-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$ciJgufZgzO1HFqEnhEvDakJEBQ51pz5PoXdmJ3k7udXXz4ihoNKRR','user','ak_1d6145ca33ed65ab','2023-07-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$M5sV2h7QKy4Cq1W4uMUl6KIcVbCJCC7iz7A3ht70F3Wj.O0kru73e','user','ak_fede36c5705be0e1','2023-08-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$nIo7BT1cFxFvBQHaJfqM5Pf1aon07fC7TCptIQyUgzhk6JrLmhZqV','user','ak_73d5e050f62a84b5','2023-04-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ikOfs70VvY.Q0nWJkQzX2gXr/.ZQDK3ZHPGOzZlzW3Vo7g.QN6uD7','user','ak_4f17547ecfe1c505','2023-12-25 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$vnGGqLCmmzg7XIq5aUN/r2FYArtejTAB6XVimtIr21j.wjLjwhY.o','admin','ak_5d8a10a054983d96','2023-10-07 10:03: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=5795;

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

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


