mirror of
				https://github.com/9technologygroup/patchmon.net.git
				synced 2025-11-03 21:43:33 +00:00 
			
		
		
		
	Added mfa and css enhancements
This commit is contained in:
		@@ -0,0 +1,2 @@
 | 
			
		||||
-- AlterTable
 | 
			
		||||
ALTER TABLE "settings" ADD COLUMN     "repository_type" TEXT NOT NULL DEFAULT 'public';
 | 
			
		||||
@@ -0,0 +1,4 @@
 | 
			
		||||
-- AlterTable
 | 
			
		||||
ALTER TABLE "users" ADD COLUMN     "tfa_backup_codes" TEXT,
 | 
			
		||||
ADD COLUMN     "tfa_enabled" BOOLEAN NOT NULL DEFAULT false,
 | 
			
		||||
ADD COLUMN     "tfa_secret" TEXT;
 | 
			
		||||
@@ -21,6 +21,11 @@ model User {
 | 
			
		||||
  createdAt     DateTime @map("created_at") @default(now())
 | 
			
		||||
  updatedAt     DateTime @map("updated_at") @updatedAt
 | 
			
		||||
  
 | 
			
		||||
  // Two-Factor Authentication
 | 
			
		||||
  tfaEnabled    Boolean  @default(false) @map("tfa_enabled")
 | 
			
		||||
  tfaSecret     String?  @map("tfa_secret")
 | 
			
		||||
  tfaBackupCodes String? @map("tfa_backup_codes") // JSON array of backup codes
 | 
			
		||||
  
 | 
			
		||||
  // Relationships
 | 
			
		||||
  dashboardPreferences DashboardPreferences[]
 | 
			
		||||
  
 | 
			
		||||
@@ -180,6 +185,7 @@ model Settings {
 | 
			
		||||
  updateInterval  Int      @map("update_interval") @default(60) // Update interval in minutes
 | 
			
		||||
  autoUpdate      Boolean  @map("auto_update") @default(false) // Enable automatic agent updates
 | 
			
		||||
  githubRepoUrl   String   @map("github_repo_url") @default("git@github.com:9technologygroup/patchmon.net.git") // GitHub repository URL for version checking
 | 
			
		||||
  repositoryType  String   @map("repository_type") @default("public") // "public" or "private"
 | 
			
		||||
  sshKeyPath      String?  @map("ssh_key_path") // Optional SSH key path for deploy key authentication
 | 
			
		||||
  createdAt       DateTime @map("created_at") @default(now())
 | 
			
		||||
  updatedAt       DateTime @map("updated_at") @updatedAt
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user