mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 14:31:13 -05:00
feat: Implement custom view tracking
This commit is contained in:
@@ -93,6 +93,9 @@ export type Database = {
|
||||
review_count: number | null
|
||||
slug: string
|
||||
updated_at: string
|
||||
view_count_30d: number | null
|
||||
view_count_7d: number | null
|
||||
view_count_all: number | null
|
||||
website_url: string | null
|
||||
}
|
||||
Insert: {
|
||||
@@ -113,6 +116,9 @@ export type Database = {
|
||||
review_count?: number | null
|
||||
slug: string
|
||||
updated_at?: string
|
||||
view_count_30d?: number | null
|
||||
view_count_7d?: number | null
|
||||
view_count_all?: number | null
|
||||
website_url?: string | null
|
||||
}
|
||||
Update: {
|
||||
@@ -133,6 +139,9 @@ export type Database = {
|
||||
review_count?: number | null
|
||||
slug?: string
|
||||
updated_at?: string
|
||||
view_count_30d?: number | null
|
||||
view_count_7d?: number | null
|
||||
view_count_all?: number | null
|
||||
website_url?: string | null
|
||||
}
|
||||
Relationships: []
|
||||
@@ -359,6 +368,33 @@ export type Database = {
|
||||
},
|
||||
]
|
||||
}
|
||||
entity_page_views: {
|
||||
Row: {
|
||||
created_at: string | null
|
||||
entity_id: string
|
||||
entity_type: string
|
||||
id: string
|
||||
session_hash: string | null
|
||||
viewed_at: string | null
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string | null
|
||||
entity_id: string
|
||||
entity_type: string
|
||||
id?: string
|
||||
session_hash?: string | null
|
||||
viewed_at?: string | null
|
||||
}
|
||||
Update: {
|
||||
created_at?: string | null
|
||||
entity_id?: string
|
||||
entity_type?: string
|
||||
id?: string
|
||||
session_hash?: string | null
|
||||
viewed_at?: string | null
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
entity_relationships_history: {
|
||||
Row: {
|
||||
change_type: string
|
||||
@@ -960,6 +996,9 @@ export type Database = {
|
||||
slug: string
|
||||
status: string
|
||||
updated_at: string
|
||||
view_count_30d: number | null
|
||||
view_count_7d: number | null
|
||||
view_count_all: number | null
|
||||
website_url: string | null
|
||||
}
|
||||
Insert: {
|
||||
@@ -986,6 +1025,9 @@ export type Database = {
|
||||
slug: string
|
||||
status?: string
|
||||
updated_at?: string
|
||||
view_count_30d?: number | null
|
||||
view_count_7d?: number | null
|
||||
view_count_all?: number | null
|
||||
website_url?: string | null
|
||||
}
|
||||
Update: {
|
||||
@@ -1012,6 +1054,9 @@ export type Database = {
|
||||
slug?: string
|
||||
status?: string
|
||||
updated_at?: string
|
||||
view_count_30d?: number | null
|
||||
view_count_7d?: number | null
|
||||
view_count_all?: number | null
|
||||
website_url?: string | null
|
||||
}
|
||||
Relationships: [
|
||||
@@ -2030,6 +2075,9 @@ export type Database = {
|
||||
slug: string
|
||||
status: string
|
||||
updated_at: string
|
||||
view_count_30d: number | null
|
||||
view_count_7d: number | null
|
||||
view_count_all: number | null
|
||||
}
|
||||
Insert: {
|
||||
age_requirement?: number | null
|
||||
@@ -2067,6 +2115,9 @@ export type Database = {
|
||||
slug: string
|
||||
status?: string
|
||||
updated_at?: string
|
||||
view_count_30d?: number | null
|
||||
view_count_7d?: number | null
|
||||
view_count_all?: number | null
|
||||
}
|
||||
Update: {
|
||||
age_requirement?: number | null
|
||||
@@ -2104,6 +2155,9 @@ export type Database = {
|
||||
slug?: string
|
||||
status?: string
|
||||
updated_at?: string
|
||||
view_count_30d?: number | null
|
||||
view_count_7d?: number | null
|
||||
view_count_all?: number | null
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
@@ -2707,6 +2761,10 @@ export type Database = {
|
||||
Args: Record<PropertyKey, never>
|
||||
Returns: undefined
|
||||
}
|
||||
cleanup_old_page_views: {
|
||||
Args: Record<PropertyKey, never>
|
||||
Returns: undefined
|
||||
}
|
||||
compare_versions: {
|
||||
Args: { p_from_version_id: string; p_to_version_id: string }
|
||||
Returns: Json
|
||||
@@ -2825,6 +2883,10 @@ export type Database = {
|
||||
Args: { target_company_id: string }
|
||||
Returns: undefined
|
||||
}
|
||||
update_entity_view_counts: {
|
||||
Args: Record<PropertyKey, never>
|
||||
Returns: undefined
|
||||
}
|
||||
update_park_ratings: {
|
||||
Args: { target_park_id: string }
|
||||
Returns: undefined
|
||||
|
||||
Reference in New Issue
Block a user