Skip to content

Commit

Permalink
schema changes, adding water_frequency, weed_frequency, sunlight, dif…
Browse files Browse the repository at this point in the history
…ficulty_level
  • Loading branch information
kylezryr committed Oct 16, 2024
1 parent 4934aa8 commit e3caa76
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions types/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import type { UUID } from 'crypto';

export type Season = 'SPRING' | 'SUMMER' | 'FALL' | 'WINTER';
export type SeasonEnum = 'SPRING' | 'SUMMER' | 'FALL' | 'WINTER';

export type DifficultyLevelEnum = 'EASY' | 'MODERATE' | 'HARD';

export interface Plant {
id: UUID;
plant_name: string;
state: string;
harvest_season: Season;
water_num_times_per_week: number;
harvest_season: SeasonEnum;
water_frequency: string;
weed_frequency: string;
plant_seed_indoors_start: string;
plant_seed_indoors_end: string;
plant_seed_outdoors_start: string;
Expand All @@ -16,10 +19,10 @@ export interface Plant {
plant_transplant_end: string;
harvest_start: string;
harvest_end: string;
water_inches_per_week: number;
harvest_days_after_plant: number;
sunlight_required: string;
beginner_friendly: boolean;
plant_tips: string;
img: string;
difficulty_level: DifficultyLevelEnum;
sunlight_min_hours: int;
sunlight_max_hours: int;
}

0 comments on commit e3caa76

Please sign in to comment.