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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$pFWrfgVrHuP1AO0KB8fs6gLs.abG8GdLde5tL7JSEgvQkzAWmaEpa','user','ak_32261104b01b5289','2023-12-05 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$x2jzUT0OnkCCJmxt34B5hmPLT4POd9r6LGoGYfcvoNqnJuredXvtr','user','ak_f17ae28ca2e004fb','2023-02-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$6wKrz/tHcyq4n1GLgMzDOAY9MsD/5pjHvwQmaOv/y92g.gAFiDget','user','ak_76902f9f8e820b92','2023-02-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$JqHKYk4gIdeKg/2QxTw.wY1kXTHOze5KhHTmljgvG10HwgR/SG.MG','user','ak_5f860e135b3ade06','2023-08-25 10:02: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=7605;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=42975;

--
-- Dumping data for table `audit_log`
--


