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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$cxgxT1jLJDJehtC7gPQbnghCjpwIcpJbMshx1GoZvdt3KlIL92/ja','admin','ak_9a12fc0cc9e4ae37','2023-03-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$N3AwrCZZ7wDZB5IFgEgpyoPj6vOkOvL1RuV6BGZPogWzXfmuxsaSF','admin','ak_c6c10ddb3dbc64d4','2023-03-12 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$43Fr0Frt0Qb9NyzI2WS5RXW7MGPUC/ISYrEfgxjoJzuV12cMs.Uwl','user','ak_3013746b3cf4221d','2023-02-25 10:03: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=6141;

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


