Appearance
web / lib/database.types / Database
Type Alias: Database
Database =
object
Defined in: lib/database.types.ts:3
Properties
__InternalSupabase
__InternalSupabase:
object
Defined in: lib/database.types.ts:6
PostgrestVersion
PostgrestVersion:
"13.0.5"
public
public:
object
Defined in: lib/database.types.ts:9
CompositeTypes
CompositeTypes:
{ [_ in never]: never }
Enums
Enums:
{ [_ in never]: never }
Functions
Functions:
{ [_ in never]: never }
Tables
Tables:
object
Tables.addresses
addresses:
object
Tables.addresses.Insert
Insert:
object
Tables.addresses.Insert.address_line?
optionaladdress_line:string|null
Tables.addresses.Insert.city?
optionalcity:string|null
Tables.addresses.Insert.country?
optionalcountry:string|null
Tables.addresses.Insert.id?
optionalid:number
Tables.addresses.Insert.latitude?
optionallatitude:number|null
Tables.addresses.Insert.longitude?
optionallongitude:number|null
Tables.addresses.Insert.postal_code?
optionalpostal_code:string|null
Tables.addresses.Insert.state?
optionalstate:string|null
Tables.addresses.Relationships
Relationships: []
Tables.addresses.Row
Row:
object
Tables.addresses.Row.address_line
address_line:
string|null
Tables.addresses.Row.city
city:
string|null
Tables.addresses.Row.country
country:
string|null
Tables.addresses.Row.id
id:
number
Tables.addresses.Row.latitude
latitude:
number|null
Tables.addresses.Row.longitude
longitude:
number|null
Tables.addresses.Row.postal_code
postal_code:
string|null
Tables.addresses.Row.state
state:
string|null
Tables.addresses.Update
Update:
object
Tables.addresses.Update.address_line?
optionaladdress_line:string|null
Tables.addresses.Update.city?
optionalcity:string|null
Tables.addresses.Update.country?
optionalcountry:string|null
Tables.addresses.Update.id?
optionalid:number
Tables.addresses.Update.latitude?
optionallatitude:number|null
Tables.addresses.Update.longitude?
optionallongitude:number|null
Tables.addresses.Update.postal_code?
optionalpostal_code:string|null
Tables.addresses.Update.state?
optionalstate:string|null
Tables.brokers
brokers:
object
Tables.brokers.Insert
Insert:
object
Tables.brokers.Insert.company_address?
optionalcompany_address:string|null
Tables.brokers.Insert.company_name?
optionalcompany_name:string|null
Tables.brokers.Insert.first_name?
optionalfirst_name:string|null
Tables.brokers.Insert.id?
optionalid:number
Tables.brokers.Insert.last_name?
optionallast_name:string|null
Tables.brokers.Insert.phone_number?
optionalphone_number:string|null
Tables.brokers.Insert.user_id?
optionaluser_id:number|null
Tables.brokers.Relationships
Relationships: [{
columns: ["user_id"];foreignKeyName:"brokers_user_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"users"; }]
Tables.brokers.Row
Row:
object
Tables.brokers.Row.company_address
company_address:
string|null
Tables.brokers.Row.company_name
company_name:
string|null
Tables.brokers.Row.first_name
first_name:
string|null
Tables.brokers.Row.id
id:
number
Tables.brokers.Row.last_name
last_name:
string|null
Tables.brokers.Row.phone_number
phone_number:
string|null
Tables.brokers.Row.user_id
user_id:
number|null
Tables.brokers.Update
Update:
object
Tables.brokers.Update.company_address?
optionalcompany_address:string|null
Tables.brokers.Update.company_name?
optionalcompany_name:string|null
Tables.brokers.Update.first_name?
optionalfirst_name:string|null
Tables.brokers.Update.id?
optionalid:number
Tables.brokers.Update.last_name?
optionallast_name:string|null
Tables.brokers.Update.phone_number?
optionalphone_number:string|null
Tables.brokers.Update.user_id?
optionaluser_id:number|null
Tables.businesses
businesses:
object
Tables.businesses.Insert
Insert:
object
Tables.businesses.Insert.address_id?
optionaladdress_id:number|null
Tables.businesses.Insert.business_hours?
optionalbusiness_hours:string|null
Tables.businesses.Insert.confidential_sale?
optionalconfidential_sale:boolean|null
Tables.businesses.Insert.customer_type?
optionalcustomer_type:string|null
Tables.businesses.Insert.description?
optionaldescription:string|null
Tables.businesses.Insert.ebitda?
optionalebitda:number|null
Tables.businesses.Insert.gross_margin?
optionalgross_margin:number|null
Tables.businesses.Insert.gross_per_year?
optionalgross_per_year:number|null
Tables.businesses.Insert.id?
optionalid:number
Tables.businesses.Insert.lease_status?
optionallease_status:string|null
Tables.businesses.Insert.lease_term_remaining?
optionallease_term_remaining:string|null
Tables.businesses.Insert.market?
optionalmarket:string|null
Tables.businesses.Insert.monthly_recurring_revenue?
optionalmonthly_recurring_revenue:number|null
Tables.businesses.Insert.name?
optionalname:string|null
Tables.businesses.Insert.number_of_employees?
optionalnumber_of_employees:number|null
Tables.businesses.Insert.ownership_type?
optionalownership_type:string|null
Tables.businesses.Insert.physical_location?
optionalphysical_location:string|null
Tables.businesses.Insert.profit_per_year?
optionalprofit_per_year:number|null
Tables.businesses.Insert.reason_for_sale?
optionalreason_for_sale:string|null
Tables.businesses.Insert.revenue_per_year?
optionalrevenue_per_year:number|null
Tables.businesses.Insert.type_of_sale?
optionaltype_of_sale:string|null
Tables.businesses.Insert.website?
optionalwebsite:string|null
Tables.businesses.Insert.will_stay_post_sale?
optionalwill_stay_post_sale:boolean|null
Tables.businesses.Insert.years_in_business?
optionalyears_in_business:number|null
Tables.businesses.Relationships
Relationships: [{
columns: ["address_id"];foreignKeyName:"businesses_address_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"addresses"; }, {columns: ["address_id"];foreignKeyName:"businesses_address_id_fkey";isOneToOne:false;referencedColumns: ["address_id"];referencedRelation:"listings_with_address"; }]
Tables.businesses.Row
Row:
object
Tables.businesses.Row.address_id
address_id:
number|null
Tables.businesses.Row.business_hours
business_hours:
string|null
Tables.businesses.Row.confidential_sale
confidential_sale:
boolean|null
Tables.businesses.Row.customer_type
customer_type:
string|null
Tables.businesses.Row.description
description:
string|null
Tables.businesses.Row.ebitda
ebitda:
number|null
Tables.businesses.Row.gross_margin
gross_margin:
number|null
Tables.businesses.Row.gross_per_year
gross_per_year:
number|null
Tables.businesses.Row.id
id:
number
Tables.businesses.Row.lease_status
lease_status:
string|null
Tables.businesses.Row.lease_term_remaining
lease_term_remaining:
string|null
Tables.businesses.Row.market
market:
string|null
Tables.businesses.Row.monthly_recurring_revenue
monthly_recurring_revenue:
number|null
Tables.businesses.Row.name
name:
string|null
Tables.businesses.Row.number_of_employees
number_of_employees:
number|null
Tables.businesses.Row.ownership_type
ownership_type:
string|null
Tables.businesses.Row.physical_location
physical_location:
string|null
Tables.businesses.Row.profit_per_year
profit_per_year:
number|null
Tables.businesses.Row.reason_for_sale
reason_for_sale:
string|null
Tables.businesses.Row.revenue_per_year
revenue_per_year:
number|null
Tables.businesses.Row.type_of_sale
type_of_sale:
string|null
Tables.businesses.Row.website
website:
string|null
Tables.businesses.Row.will_stay_post_sale
will_stay_post_sale:
boolean|null
Tables.businesses.Row.years_in_business
years_in_business:
number|null
Tables.businesses.Update
Update:
object
Tables.businesses.Update.address_id?
optionaladdress_id:number|null
Tables.businesses.Update.business_hours?
optionalbusiness_hours:string|null
Tables.businesses.Update.confidential_sale?
optionalconfidential_sale:boolean|null
Tables.businesses.Update.customer_type?
optionalcustomer_type:string|null
Tables.businesses.Update.description?
optionaldescription:string|null
Tables.businesses.Update.ebitda?
optionalebitda:number|null
Tables.businesses.Update.gross_margin?
optionalgross_margin:number|null
Tables.businesses.Update.gross_per_year?
optionalgross_per_year:number|null
Tables.businesses.Update.id?
optionalid:number
Tables.businesses.Update.lease_status?
optionallease_status:string|null
Tables.businesses.Update.lease_term_remaining?
optionallease_term_remaining:string|null
Tables.businesses.Update.market?
optionalmarket:string|null
Tables.businesses.Update.monthly_recurring_revenue?
optionalmonthly_recurring_revenue:number|null
Tables.businesses.Update.name?
optionalname:string|null
Tables.businesses.Update.number_of_employees?
optionalnumber_of_employees:number|null
Tables.businesses.Update.ownership_type?
optionalownership_type:string|null
Tables.businesses.Update.physical_location?
optionalphysical_location:string|null
Tables.businesses.Update.profit_per_year?
optionalprofit_per_year:number|null
Tables.businesses.Update.reason_for_sale?
optionalreason_for_sale:string|null
Tables.businesses.Update.revenue_per_year?
optionalrevenue_per_year:number|null
Tables.businesses.Update.type_of_sale?
optionaltype_of_sale:string|null
Tables.businesses.Update.website?
optionalwebsite:string|null
Tables.businesses.Update.will_stay_post_sale?
optionalwill_stay_post_sale:boolean|null
Tables.businesses.Update.years_in_business?
optionalyears_in_business:number|null
Tables.documents
documents:
object
Tables.documents.Insert
Insert:
object
Tables.documents.Insert.business_id?
optionalbusiness_id:number|null
Tables.documents.Insert.document_name?
optionaldocument_name:string|null
Tables.documents.Insert.document_type?
optionaldocument_type:string|null
Tables.documents.Insert.file_path?
optionalfile_path:string|null
Tables.documents.Insert.id?
optionalid:number
Tables.documents.Insert.uploaded_at?
optionaluploaded_at:string|null
Tables.documents.Relationships
Relationships: [{
columns: ["business_id"];foreignKeyName:"documents_business_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"businesses"; }, {columns: ["business_id"];foreignKeyName:"documents_business_id_fkey";isOneToOne:false;referencedColumns: ["business_id"];referencedRelation:"listings_with_address"; }]
Tables.documents.Row
Row:
object
Tables.documents.Row.business_id
business_id:
number|null
Tables.documents.Row.document_name
document_name:
string|null
Tables.documents.Row.document_type
document_type:
string|null
Tables.documents.Row.file_path
file_path:
string|null
Tables.documents.Row.id
id:
number
Tables.documents.Row.uploaded_at
uploaded_at:
string|null
Tables.documents.Update
Update:
object
Tables.documents.Update.business_id?
optionalbusiness_id:number|null
Tables.documents.Update.document_name?
optionaldocument_name:string|null
Tables.documents.Update.document_type?
optionaldocument_type:string|null
Tables.documents.Update.file_path?
optionalfile_path:string|null
Tables.documents.Update.id?
optionalid:number
Tables.documents.Update.uploaded_at?
optionaluploaded_at:string|null
Tables.favorites
favorites:
object
Tables.favorites.Insert
Insert:
object
Tables.favorites.Insert.id?
optionalid:number
Tables.favorites.Insert.listing_id?
optionallisting_id:number|null
Tables.favorites.Insert.user_id?
optionaluser_id:number|null
Tables.favorites.Relationships
Relationships: [{
columns: ["listing_id"];foreignKeyName:"favorites_listing_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"listings"; }, {columns: ["listing_id"];foreignKeyName:"favorites_listing_id_fkey";isOneToOne:false;referencedColumns: ["listing_id"];referencedRelation:"listings_with_address"; }, {columns: ["user_id"];foreignKeyName:"favorites_user_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"users"; }]
Tables.favorites.Row
Row:
object
Tables.favorites.Row.id
id:
number
Tables.favorites.Row.listing_id
listing_id:
number|null
Tables.favorites.Row.user_id
user_id:
number|null
Tables.favorites.Update
Update:
object
Tables.favorites.Update.id?
optionalid:number
Tables.favorites.Update.listing_id?
optionallisting_id:number|null
Tables.favorites.Update.user_id?
optionaluser_id:number|null
Tables.listing_images
listing_images:
object
Tables.listing_images.Insert
Insert:
object
Tables.listing_images.Insert.id?
optionalid:number
Tables.listing_images.Insert.image_path?
optionalimage_path:string|null
Tables.listing_images.Insert.listing_id?
optionallisting_id:number|null
Tables.listing_images.Relationships
Relationships: [{
columns: ["listing_id"];foreignKeyName:"listing_images_listing_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"listings"; }, {columns: ["listing_id"];foreignKeyName:"listing_images_listing_id_fkey";isOneToOne:false;referencedColumns: ["listing_id"];referencedRelation:"listings_with_address"; }]
Tables.listing_images.Row
Row:
object
Tables.listing_images.Row.id
id:
number
Tables.listing_images.Row.image_path
image_path:
string|null
Tables.listing_images.Row.listing_id
listing_id:
number|null
Tables.listing_images.Update
Update:
object
Tables.listing_images.Update.id?
optionalid:number
Tables.listing_images.Update.image_path?
optionalimage_path:string|null
Tables.listing_images.Update.listing_id?
optionallisting_id:number|null
Tables.listings
listings:
object
Tables.listings.Insert
Insert:
object
Tables.listings.Insert.asking_price?
optionalasking_price:number|null
Tables.listings.Insert.business_id?
optionalbusiness_id:number|null
Tables.listings.Insert.contact_company?
optionalcontact_company:string|null
Tables.listings.Insert.contact_email?
optionalcontact_email:string|null
Tables.listings.Insert.contact_method?
optionalcontact_method:string|null
Tables.listings.Insert.contact_name?
optionalcontact_name:string|null
Tables.listings.Insert.contact_phone?
optionalcontact_phone:string|null
Tables.listings.Insert.contact_role?
optionalcontact_role:string|null
Tables.listings.Insert.date_established?
optionaldate_established:string|null
Tables.listings.Insert.id?
optionalid:number
Tables.listings.Insert.is_public?
optionalis_public:boolean|null
Tables.listings.Insert.listed_at?
optionallisted_at:string|null
Tables.listings.Insert.preferred_contact?
optionalpreferred_contact:string|null
Tables.listings.Insert.status?
optionalstatus:string|null
Tables.listings.Insert.user_id?
optionaluser_id:number|null
Tables.listings.Insert.valuation_multiple?
optionalvaluation_multiple:number|null
Tables.listings.Insert.views?
optionalviews:number|null
Tables.listings.Relationships
Relationships: [{
columns: ["business_id"];foreignKeyName:"listings_business_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"businesses"; }, {columns: ["business_id"];foreignKeyName:"listings_business_id_fkey";isOneToOne:false;referencedColumns: ["business_id"];referencedRelation:"listings_with_address"; }, {columns: ["user_id"];foreignKeyName:"listings_user_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"users"; }]
Tables.listings.Row
Row:
object
Tables.listings.Row.asking_price
asking_price:
number|null
Tables.listings.Row.business_id
business_id:
number|null
Tables.listings.Row.contact_company
contact_company:
string|null
Tables.listings.Row.contact_email
contact_email:
string|null
Tables.listings.Row.contact_method
contact_method:
string|null
Tables.listings.Row.contact_name
contact_name:
string|null
Tables.listings.Row.contact_phone
contact_phone:
string|null
Tables.listings.Row.contact_role
contact_role:
string|null
Tables.listings.Row.date_established
date_established:
string|null
Tables.listings.Row.id
id:
number
Tables.listings.Row.is_public
is_public:
boolean|null
Tables.listings.Row.listed_at
listed_at:
string|null
Tables.listings.Row.preferred_contact
preferred_contact:
string|null
Tables.listings.Row.status
status:
string|null
Tables.listings.Row.user_id
user_id:
number|null
Tables.listings.Row.valuation_multiple
valuation_multiple:
number|null
Tables.listings.Row.views
views:
number|null
Tables.listings.Update
Update:
object
Tables.listings.Update.asking_price?
optionalasking_price:number|null
Tables.listings.Update.business_id?
optionalbusiness_id:number|null
Tables.listings.Update.contact_company?
optionalcontact_company:string|null
Tables.listings.Update.contact_email?
optionalcontact_email:string|null
Tables.listings.Update.contact_method?
optionalcontact_method:string|null
Tables.listings.Update.contact_name?
optionalcontact_name:string|null
Tables.listings.Update.contact_phone?
optionalcontact_phone:string|null
Tables.listings.Update.contact_role?
optionalcontact_role:string|null
Tables.listings.Update.date_established?
optionaldate_established:string|null
Tables.listings.Update.id?
optionalid:number
Tables.listings.Update.is_public?
optionalis_public:boolean|null
Tables.listings.Update.listed_at?
optionallisted_at:string|null
Tables.listings.Update.preferred_contact?
optionalpreferred_contact:string|null
Tables.listings.Update.status?
optionalstatus:string|null
Tables.listings.Update.user_id?
optionaluser_id:number|null
Tables.listings.Update.valuation_multiple?
optionalvaluation_multiple:number|null
Tables.listings.Update.views?
optionalviews:number|null
Tables.product_purchases
product_purchases:
object
Tables.product_purchases.Insert
Insert:
object
Tables.product_purchases.Insert.amount_paid?
optionalamount_paid:number|null
Tables.product_purchases.Insert.currency?
optionalcurrency:string|null
Tables.product_purchases.Insert.id?
optionalid:number
Tables.product_purchases.Insert.payment_status?
optionalpayment_status:string|null
Tables.product_purchases.Insert.product_id?
optionalproduct_id:number|null
Tables.product_purchases.Insert.purchased_at?
optionalpurchased_at:string|null
Tables.product_purchases.Insert.stripe_session_id?
optionalstripe_session_id:string|null
Tables.product_purchases.Insert.user_id?
optionaluser_id:number|null
Tables.product_purchases.Relationships
Relationships: [{
columns: ["product_id"];foreignKeyName:"product_purchases_product_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"products"; }, {columns: ["user_id"];foreignKeyName:"product_purchases_user_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"users"; }]
Tables.product_purchases.Row
Row:
object
Tables.product_purchases.Row.amount_paid
amount_paid:
number|null
Tables.product_purchases.Row.currency
currency:
string|null
Tables.product_purchases.Row.id
id:
number
Tables.product_purchases.Row.payment_status
payment_status:
string|null
Tables.product_purchases.Row.product_id
product_id:
number|null
Tables.product_purchases.Row.purchased_at
purchased_at:
string|null
Tables.product_purchases.Row.stripe_session_id
stripe_session_id:
string|null
Tables.product_purchases.Row.user_id
user_id:
number|null
Tables.product_purchases.Update
Update:
object
Tables.product_purchases.Update.amount_paid?
optionalamount_paid:number|null
Tables.product_purchases.Update.currency?
optionalcurrency:string|null
Tables.product_purchases.Update.id?
optionalid:number
Tables.product_purchases.Update.payment_status?
optionalpayment_status:string|null
Tables.product_purchases.Update.product_id?
optionalproduct_id:number|null
Tables.product_purchases.Update.purchased_at?
optionalpurchased_at:string|null
Tables.product_purchases.Update.stripe_session_id?
optionalstripe_session_id:string|null
Tables.product_purchases.Update.user_id?
optionaluser_id:number|null
Tables.products
products:
object
Tables.products.Insert
Insert:
object
Tables.products.Insert.category
category:
string
Tables.products.Insert.created_at?
optionalcreated_at:string|null
Tables.products.Insert.description?
optionaldescription:string|null
Tables.products.Insert.file_path?
optionalfile_path:string|null
Tables.products.Insert.id?
optionalid:number
Tables.products.Insert.locked?
optionallocked:boolean|null
Tables.products.Insert.name
name:
string
Tables.products.Insert.popular?
optionalpopular:boolean|null
Tables.products.Insert.preview_available?
optionalpreview_available:boolean|null
Tables.products.Insert.price
price:
number
Tables.products.Insert.tags?
optionaltags:string|null
Tables.products.Insert.updated_at?
optionalupdated_at:string|null
Tables.products.Relationships
Relationships: []
Tables.products.Row
Row:
object
Tables.products.Row.category
category:
string
Tables.products.Row.created_at
created_at:
string|null
Tables.products.Row.description
description:
string|null
Tables.products.Row.file_path
file_path:
string|null
Tables.products.Row.id
id:
number
Tables.products.Row.locked
locked:
boolean|null
Tables.products.Row.name
name:
string
Tables.products.Row.popular
popular:
boolean|null
Tables.products.Row.preview_available
preview_available:
boolean|null
Tables.products.Row.price
price:
number
Tables.products.Row.tags
tags:
string|null
Tables.products.Row.updated_at
updated_at:
string|null
Tables.products.Update
Update:
object
Tables.products.Update.category?
optionalcategory:string
Tables.products.Update.created_at?
optionalcreated_at:string|null
Tables.products.Update.description?
optionaldescription:string|null
Tables.products.Update.file_path?
optionalfile_path:string|null
Tables.products.Update.id?
optionalid:number
Tables.products.Update.locked?
optionallocked:boolean|null
Tables.products.Update.name?
optionalname:string
Tables.products.Update.popular?
optionalpopular:boolean|null
Tables.products.Update.preview_available?
optionalpreview_available:boolean|null
Tables.products.Update.price?
optionalprice:number
Tables.products.Update.tags?
optionaltags:string|null
Tables.products.Update.updated_at?
optionalupdated_at:string|null
Tables.subscriptions
subscriptions:
object
Tables.subscriptions.Insert
Insert:
object
Tables.subscriptions.Insert.current_period_end?
optionalcurrent_period_end:string|null
Tables.subscriptions.Insert.id?
optionalid:number
Tables.subscriptions.Insert.plan_id?
optionalplan_id:string|null
Tables.subscriptions.Insert.stripe_customer_id?
optionalstripe_customer_id:string|null
Tables.subscriptions.Insert.stripe_subscription_id?
optionalstripe_subscription_id:string|null
Tables.subscriptions.Insert.subscription_status?
optionalsubscription_status:string|null
Tables.subscriptions.Relationships
Relationships: []
Tables.subscriptions.Row
Row:
object
Tables.subscriptions.Row.current_period_end
current_period_end:
string|null
Tables.subscriptions.Row.id
id:
number
Tables.subscriptions.Row.plan_id
plan_id:
string|null
Tables.subscriptions.Row.stripe_customer_id
stripe_customer_id:
string|null
Tables.subscriptions.Row.stripe_subscription_id
stripe_subscription_id:
string|null
Tables.subscriptions.Row.subscription_status
subscription_status:
string|null
Tables.subscriptions.Update
Update:
object
Tables.subscriptions.Update.current_period_end?
optionalcurrent_period_end:string|null
Tables.subscriptions.Update.id?
optionalid:number
Tables.subscriptions.Update.plan_id?
optionalplan_id:string|null
Tables.subscriptions.Update.stripe_customer_id?
optionalstripe_customer_id:string|null
Tables.subscriptions.Update.stripe_subscription_id?
optionalstripe_subscription_id:string|null
Tables.subscriptions.Update.subscription_status?
optionalsubscription_status:string|null
Tables.transactions
transactions:
object
Tables.transactions.Insert
Insert:
object
Tables.transactions.Insert.buyer_user_id?
optionalbuyer_user_id:number|null
Tables.transactions.Insert.id?
optionalid:number
Tables.transactions.Insert.listing_id?
optionallisting_id:number|null
Tables.transactions.Insert.price?
optionalprice:number|null
Tables.transactions.Insert.seller_user_id?
optionalseller_user_id:number|null
Tables.transactions.Insert.sold_at?
optionalsold_at:string|null
Tables.transactions.Relationships
Relationships: [{
columns: ["buyer_user_id"];foreignKeyName:"transactions_buyer_user_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"users"; }, {columns: ["listing_id"];foreignKeyName:"transactions_listing_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"listings"; }, {columns: ["listing_id"];foreignKeyName:"transactions_listing_id_fkey";isOneToOne:false;referencedColumns: ["listing_id"];referencedRelation:"listings_with_address"; }, {columns: ["seller_user_id"];foreignKeyName:"transactions_seller_user_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"users"; }]
Tables.transactions.Row
Row:
object
Tables.transactions.Row.buyer_user_id
buyer_user_id:
number|null
Tables.transactions.Row.id
id:
number
Tables.transactions.Row.listing_id
listing_id:
number|null
Tables.transactions.Row.price
price:
number|null
Tables.transactions.Row.seller_user_id
seller_user_id:
number|null
Tables.transactions.Row.sold_at
sold_at:
string|null
Tables.transactions.Update
Update:
object
Tables.transactions.Update.buyer_user_id?
optionalbuyer_user_id:number|null
Tables.transactions.Update.id?
optionalid:number
Tables.transactions.Update.listing_id?
optionallisting_id:number|null
Tables.transactions.Update.price?
optionalprice:number|null
Tables.transactions.Update.seller_user_id?
optionalseller_user_id:number|null
Tables.transactions.Update.sold_at?
optionalsold_at:string|null
Tables.users
users:
object
Tables.users.Insert
Insert:
object
Tables.users.Insert.auth_user_id?
optionalauth_user_id:string|null
Tables.users.Insert.created_at?
optionalcreated_at:string|null
Tables.users.Insert.email?
optionalemail:string|null
Tables.users.Insert.first_name?
optionalfirst_name:string|null
Tables.users.Insert.id?
optionalid:number
Tables.users.Insert.last_name?
optionallast_name:string|null
Tables.users.Insert.profile_image_path?
optionalprofile_image_path:string|null
Tables.users.Insert.role?
optionalrole:string|null
Tables.users.Insert.subscription_id?
optionalsubscription_id:number|null
Tables.users.Relationships
Relationships: [{
columns: ["subscription_id"];foreignKeyName:"users_subscription_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"subscriptions"; }]
Tables.users.Row
Row:
object
Tables.users.Row.auth_user_id
auth_user_id:
string|null
Tables.users.Row.created_at
created_at:
string|null
Tables.users.Row.email
email:
string|null
Tables.users.Row.first_name
first_name:
string|null
Tables.users.Row.id
id:
number
Tables.users.Row.last_name
last_name:
string|null
Tables.users.Row.profile_image_path
profile_image_path:
string|null
Tables.users.Row.role
role:
string|null
Tables.users.Row.subscription_id
subscription_id:
number|null
Tables.users.Update
Update:
object
Tables.users.Update.auth_user_id?
optionalauth_user_id:string|null
Tables.users.Update.created_at?
optionalcreated_at:string|null
Tables.users.Update.email?
optionalemail:string|null
Tables.users.Update.first_name?
optionalfirst_name:string|null
Tables.users.Update.id?
optionalid:number
Tables.users.Update.last_name?
optionallast_name:string|null
Tables.users.Update.profile_image_path?
optionalprofile_image_path:string|null
Tables.users.Update.role?
optionalrole:string|null
Tables.users.Update.subscription_id?
optionalsubscription_id:number|null
Views
Views:
object
Views.listings_with_address
listings_with_address:
object
Views.listings_with_address.Relationships
Relationships: [{
columns: ["listing_business_id"];foreignKeyName:"listings_business_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"businesses"; }, {columns: ["listing_business_id"];foreignKeyName:"listings_business_id_fkey";isOneToOne:false;referencedColumns: ["business_id"];referencedRelation:"listings_with_address"; }, {columns: ["user_id"];foreignKeyName:"listings_user_id_fkey";isOneToOne:false;referencedColumns: ["id"];referencedRelation:"users"; }]
Views.listings_with_address.Row
Row:
object
Views.listings_with_address.Row.address_id
address_id:
number|null
Views.listings_with_address.Row.address_line
address_line:
string|null
Views.listings_with_address.Row.asking_price
asking_price:
number|null
Views.listings_with_address.Row.business_hours
business_hours:
string|null
Views.listings_with_address.Row.business_id
business_id:
number|null
Views.listings_with_address.Row.business_name
business_name:
string|null
Views.listings_with_address.Row.city
city:
string|null
Views.listings_with_address.Row.confidential_sale
confidential_sale:
boolean|null
Views.listings_with_address.Row.contact_company
contact_company:
string|null
Views.listings_with_address.Row.contact_email
contact_email:
string|null
Views.listings_with_address.Row.contact_method
contact_method:
string|null
Views.listings_with_address.Row.contact_name
contact_name:
string|null
Views.listings_with_address.Row.contact_phone
contact_phone:
string|null
Views.listings_with_address.Row.contact_role
contact_role:
string|null
Views.listings_with_address.Row.country
country:
string|null
Views.listings_with_address.Row.customer_type
customer_type:
string|null
Views.listings_with_address.Row.date_established
date_established:
string|null
Views.listings_with_address.Row.description
description:
string|null
Views.listings_with_address.Row.ebitda
ebitda:
number|null
Views.listings_with_address.Row.gross_margin
gross_margin:
number|null
Views.listings_with_address.Row.gross_per_year
gross_per_year:
number|null
Views.listings_with_address.Row.is_public
is_public:
boolean|null
Views.listings_with_address.Row.latitude
latitude:
number|null
Views.listings_with_address.Row.lease_status
lease_status:
string|null
Views.listings_with_address.Row.lease_term_remaining
lease_term_remaining:
string|null
Views.listings_with_address.Row.listed_at
listed_at:
string|null
Views.listings_with_address.Row.listing_business_id
listing_business_id:
number|null
Views.listings_with_address.Row.listing_id
listing_id:
number|null
Views.listings_with_address.Row.longitude
longitude:
number|null
Views.listings_with_address.Row.market
market:
string|null
Views.listings_with_address.Row.monthly_recurring_revenue
monthly_recurring_revenue:
number|null
Views.listings_with_address.Row.number_of_employees
number_of_employees:
number|null
Views.listings_with_address.Row.ownership_type
ownership_type:
string|null
Views.listings_with_address.Row.physical_location
physical_location:
string|null
Views.listings_with_address.Row.postal_code
postal_code:
string|null
Views.listings_with_address.Row.preferred_contact
preferred_contact:
string|null
Views.listings_with_address.Row.profit_per_year
profit_per_year:
number|null
Views.listings_with_address.Row.reason_for_sale
reason_for_sale:
string|null
Views.listings_with_address.Row.revenue_per_year
revenue_per_year:
number|null
Views.listings_with_address.Row.state
state:
string|null
Views.listings_with_address.Row.status
status:
string|null
Views.listings_with_address.Row.type_of_sale
type_of_sale:
string|null
Views.listings_with_address.Row.user_id
user_id:
number|null
Views.listings_with_address.Row.valuation_multiple
valuation_multiple:
number|null
Views.listings_with_address.Row.views
views:
number|null
Views.listings_with_address.Row.website
website:
string|null
Views.listings_with_address.Row.will_stay_post_sale
will_stay_post_sale:
boolean|null
Views.listings_with_address.Row.years_in_business
years_in_business:
number|null