feat: add 'other' product type for miscellaneous sites (tracking only, no remote control)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 16:52:23 +03:30
co-authored by Cursor
parent 0c29222e9d
commit 674da4e939
13 changed files with 34 additions and 15 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ function hostFromUrl(url?: string | null) {
}
function classifyProduct(row: SourceUser, domains: string[]): {
product: ProductType;
product: Exclude<ProductType, 'other'>;
confident: boolean;
reason: string;
} {
@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "public"."ProductType" ADD VALUE IF NOT EXISTS 'other';
+2
View File
@@ -8,9 +8,11 @@ datasource db {
url = env("DATABASE_URL")
}
/// other = سایت‌های متفرقه: فقط ثبت مشخصات و پیگیری سرور/افزونه/پشتیبانی/پیامک؛ بدون کنترل ریموت و بدون get_user.
enum ProductType {
hamkar
khanegi
other
}
/// Khanegi front-end appearance family (ignored for hamkar).