feat: add AUR repository support for Arch Linux packages

- Extended database schema and models to include 'aur' as a valid repository type alongside 'official' and 'third-party'
- Added repository filter UI in package browser for Arch platform to distinguish between official and AUR packages
- Enhanced init-db script with migration system to track and apply schema changes automatically
This commit is contained in:
Yusuf İpek
2025-11-12 20:43:50 +03:00
parent cce1098282
commit 560e78cb96
11 changed files with 395 additions and 226 deletions
+4 -4
View File
@@ -7,7 +7,7 @@ export interface Package {
category_id?: number
license_id?: number
type?: 'gui' | 'cli'
repository?: 'official' | 'third-party'
repository?: 'official' | 'third-party' | 'aur'
homepage_url?: string
download_url?: string
last_updated?: Date
@@ -53,7 +53,7 @@ export interface CreatePackageInput {
category_id?: number
license_id?: number
type?: 'gui' | 'cli'
repository?: 'official' | 'third-party'
repository?: 'official' | 'third-party' | 'aur'
homepage_url?: string
download_url?: string
popularity_score?: number
@@ -66,7 +66,7 @@ export interface UpdatePackageInput {
category_id?: number
license_id?: number
type?: 'gui' | 'cli'
repository?: 'official' | 'third-party'
repository?: 'official' | 'third-party' | 'aur'
homepage_url?: string
download_url?: string
popularity_score?: number
@@ -77,7 +77,7 @@ export interface PackageFilter {
platform_id?: string
category_id?: number
type?: 'gui' | 'cli'
repository?: 'official' | 'third-party'
repository?: 'official' | 'third-party' | 'aur'
search?: string
limit?: number
offset?: number