Files
opencloud/src/types/database.ts
T
2026-07-18 20:49:09 +08:00

53 lines
1.0 KiB
TypeScript

export interface CloudType {
id: number
name: string
name_en: string
genus: string
rarity: 'common' | 'uncommon' | 'rare'
description: string | null
icon_url: string | null
created_at: string
}
export interface Cloud {
id: string
user_id: string
cloud_type_id: number | null
custom_cloud_type: string | null
image_url: string
thumbnail_url: string | null
latitude: number | null
longitude: number | null
location_name: string | null
description: string | null
captured_at: string | null
status: 'pending' | 'approved' | 'rejected'
is_hidden: boolean
created_at: string
}
export interface Profile {
id: string
username: string
avatar_url: string | null
role: 'user' | 'admin'
is_disabled: boolean
created_at: string
}
export interface UserCollection {
id: string
user_id: string
cloud_type_id: number
first_cloud_id: string | null
unlocked_at: string
}
export interface Reaction {
id: string
user_id: string
cloud_id: string
emoji: string
created_at: string
}