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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$cx8y9la93evv7FXvnpbqYJlyVkIQ9.k15WM2LTVhnzO/WVuuFjjLD','user','ak_c89eb42641479752','2023-01-06 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$V7zia7hzitI8oP6P3gB5pXC0k0/7vuZKI0ioWGmoxahheHpzFhDKd','admin','ak_6e991837f6882ca2','2023-02-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$SjRSKSZIAzOzX0AL.IrjbytFQ2uFvHoWYfnXKLVCsDNMOjs6vaq.v','user','ak_34390074014390e3','2023-09-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$DZPNn/k6qwhVeC4LgeQGhrOS8mddHP8nDnSN3kr16QHjjQI.Dk6El','user','ak_5f7096aa65b67e42','2023-03-03 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=1091;

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


