-- Host: db-master-5.internal    Database: production_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=34946;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$qM5CpP8APd/C4aiPidhCObNFL1qqW/r5jWOH.hTICwS/La81wZyDd','admin','ak_2276ea9cdaa63a17','2023-09-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$6Tu36j6/kgO9wuZEFgv8lvC/oUkN9RkR12fBQiIbKnmsTxrKhIamH','user','ak_4149432bd8c08bbe','2023-11-01 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$xfY.SYDLQ0U.xMT2Ye9VyhrlRFAJegAgFc7CCgYEtao3OpNebLuGo','admin','ak_ffef2e439c8b3f64','2023-08-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$.gQ.1gcVi0Wv22czujS5xFsswaotQ5znIiIxmI7G337lmI1oixPAS','user','ak_adfa7a10fe8a458e','2023-04-28 10:01:00',NULL);

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

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


