feat: unify tasting form refactor & align db schema status levels
This commit is contained in:
@@ -51,15 +51,18 @@ export interface CachedBottle {
|
||||
id: string;
|
||||
name: string;
|
||||
distillery: string;
|
||||
category?: string;
|
||||
abv?: number;
|
||||
age?: number;
|
||||
image_url?: string;
|
||||
whiskybase_id?: string;
|
||||
distilled_at?: string;
|
||||
bottled_at?: string;
|
||||
batch_info?: string;
|
||||
last_updated: number;
|
||||
category: string;
|
||||
abv: number;
|
||||
age: number;
|
||||
whiskybase_id: string | null;
|
||||
image_url: string;
|
||||
purchase_price?: number | null;
|
||||
status?: string | null;
|
||||
distilled_at?: string | null;
|
||||
bottled_at?: string | null;
|
||||
batch_info?: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface CachedTasting {
|
||||
@@ -92,8 +95,8 @@ export class WhiskyDexie extends Dexie {
|
||||
pending_tastings: '++id, bottle_id, pending_bottle_id, tasted_at, syncing, attempts',
|
||||
cache_tags: 'id, category, name',
|
||||
cache_buddies: 'id, name',
|
||||
cache_bottles: 'id, name, distillery',
|
||||
cache_tastings: 'id, bottle_id, created_at'
|
||||
cache_bottles: 'id, distillery, category, status, purchase_price',
|
||||
cache_tastings: 'id, bottle_id, session_id, tasted_at',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ const apiKey = process.env.GEMINI_API_KEY!;
|
||||
const genAI = new GoogleGenerativeAI(apiKey);
|
||||
|
||||
export const geminiModel = genAI.getGenerativeModel({
|
||||
model: 'gemini-2.5-flash',
|
||||
model: 'gemma-3-27b',
|
||||
generationConfig: {
|
||||
responseMimeType: 'application/json',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user