| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- export type Json =
- | string
- | number
- | boolean
- | null
- | { [key: string]: Json | undefined }
- | Json[]
- export type Database = {
- // Allows to automatically instantiate createClient with right options
- // instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
- __InternalSupabase: {
- PostgrestVersion: "12.2.3 (519615d)"
- }
- public: {
- Tables: {
- articles: {
- Row: {
- content: string | null
- created_at: string
- description: string | null
- feed_id: string
- guid: string | null
- id: string
- image_url: string | null
- last_seen_at: string | null
- published_at: string
- read_time: number | null
- title: string
- updated_at: string
- url: string | null
- }
- Insert: {
- content?: string | null
- created_at?: string
- description?: string | null
- feed_id: string
- guid?: string | null
- id?: string
- image_url?: string | null
- last_seen_at?: string | null
- published_at: string
- read_time?: number | null
- title: string
- updated_at?: string
- url?: string | null
- }
- Update: {
- content?: string | null
- created_at?: string
- description?: string | null
- feed_id?: string
- guid?: string | null
- id?: string
- image_url?: string | null
- last_seen_at?: string | null
- published_at?: string
- read_time?: number | null
- title?: string
- updated_at?: string
- url?: string | null
- }
- Relationships: [
- {
- foreignKeyName: "articles_feed_id_fkey"
- columns: ["feed_id"]
- isOneToOne: false
- referencedRelation: "feeds"
- referencedColumns: ["id"]
- },
- ]
- }
- feeds: {
- Row: {
- article_count: number | null
- category: string
- created_at: string
- description: string | null
- id: string
- last_fetched_at: string | null
- last_updated: string | null
- name: string
- status: string
- type: string
- updated_at: string
- url: string
- }
- Insert: {
- article_count?: number | null
- category: string
- created_at?: string
- description?: string | null
- id?: string
- last_fetched_at?: string | null
- last_updated?: string | null
- name: string
- status?: string
- type: string
- updated_at?: string
- url: string
- }
- Update: {
- article_count?: number | null
- category?: string
- created_at?: string
- description?: string | null
- id?: string
- last_fetched_at?: string | null
- last_updated?: string | null
- name?: string
- status?: string
- type?: string
- updated_at?: string
- url?: string
- }
- Relationships: []
- }
- super_users: {
- Row: {
- created_at: string
- email: string
- id: string
- user_id: string
- }
- Insert: {
- created_at?: string
- email: string
- id?: string
- user_id: string
- }
- Update: {
- created_at?: string
- email?: string
- id?: string
- user_id?: string
- }
- Relationships: []
- }
- user_articles: {
- Row: {
- article_id: string
- created_at: string
- id: string
- is_pinned: boolean
- is_read: boolean
- read_at: string | null
- read_count: number
- user_id: string
- }
- Insert: {
- article_id: string
- created_at?: string
- id?: string
- is_pinned?: boolean
- is_read?: boolean
- read_at?: string | null
- read_count?: number
- user_id: string
- }
- Update: {
- article_id?: string
- created_at?: string
- id?: string
- is_pinned?: boolean
- is_read?: boolean
- read_at?: string | null
- read_count?: number
- user_id?: string
- }
- Relationships: [
- {
- foreignKeyName: "user_articles_article_id_fkey"
- columns: ["article_id"]
- isOneToOne: false
- referencedRelation: "articles"
- referencedColumns: ["id"]
- },
- ]
- }
- user_feeds: {
- Row: {
- created_at: string
- feed_id: string
- id: string
- is_followed: boolean
- user_id: string
- }
- Insert: {
- created_at?: string
- feed_id: string
- id?: string
- is_followed?: boolean
- user_id: string
- }
- Update: {
- created_at?: string
- feed_id?: string
- id?: string
- is_followed?: boolean
- user_id?: string
- }
- Relationships: [
- {
- foreignKeyName: "user_feeds_feed_id_fkey"
- columns: ["feed_id"]
- isOneToOne: false
- referencedRelation: "feeds"
- referencedColumns: ["id"]
- },
- ]
- }
- }
- Views: {
- [_ in never]: never
- }
- Functions: {
- is_super_user: { Args: { user_email?: string }; Returns: boolean }
- purge_old_articles: {
- Args: never
- Returns: {
- admin_emails: string[]
- deleted_count: number
- }[]
- }
- test_purge_articles: {
- Args: never
- Returns: {
- articles_to_delete: number
- newest_article_date: string
- oldest_article_date: string
- sample_titles: string[]
- }[]
- }
- trigger_fetch_all_feeds: { Args: never; Returns: undefined }
- trigger_purge_articles: { Args: never; Returns: undefined }
- }
- Enums: {
- [_ in never]: never
- }
- CompositeTypes: {
- [_ in never]: never
- }
- }
- }
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
- export type Tables<
- DefaultSchemaTableNameOrOptions extends
- | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
- | { schema: keyof DatabaseWithoutInternals },
- TableName extends DefaultSchemaTableNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
- DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
- : never = never,
- > = DefaultSchemaTableNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
- DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
- Row: infer R
- }
- ? R
- : never
- : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
- DefaultSchema["Views"])
- ? (DefaultSchema["Tables"] &
- DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
- Row: infer R
- }
- ? R
- : never
- : never
- export type TablesInsert<
- DefaultSchemaTableNameOrOptions extends
- | keyof DefaultSchema["Tables"]
- | { schema: keyof DatabaseWithoutInternals },
- TableName extends DefaultSchemaTableNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
- : never = never,
- > = DefaultSchemaTableNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
- Insert: infer I
- }
- ? I
- : never
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
- Insert: infer I
- }
- ? I
- : never
- : never
- export type TablesUpdate<
- DefaultSchemaTableNameOrOptions extends
- | keyof DefaultSchema["Tables"]
- | { schema: keyof DatabaseWithoutInternals },
- TableName extends DefaultSchemaTableNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
- : never = never,
- > = DefaultSchemaTableNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
- Update: infer U
- }
- ? U
- : never
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
- Update: infer U
- }
- ? U
- : never
- : never
- export type Enums<
- DefaultSchemaEnumNameOrOptions extends
- | keyof DefaultSchema["Enums"]
- | { schema: keyof DatabaseWithoutInternals },
- EnumName extends DefaultSchemaEnumNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
- : never = never,
- > = DefaultSchemaEnumNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
- : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
- ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
- : never
- export type CompositeTypes<
- PublicCompositeTypeNameOrOptions extends
- | keyof DefaultSchema["CompositeTypes"]
- | { schema: keyof DatabaseWithoutInternals },
- CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
- : never = never,
- > = PublicCompositeTypeNameOrOptions extends {
- schema: keyof DatabaseWithoutInternals
- }
- ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
- : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
- ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
- : never
- export const Constants = {
- public: {
- Enums: {},
- },
- } as const
|