324 lines
8.7 KiB
TypeScript
324 lines
8.7 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* WARNING: This is an internal file that is subject to change!
|
|
*
|
|
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
*
|
|
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
*
|
|
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
* model files in the `model` directory!
|
|
*/
|
|
|
|
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
|
|
export type * from '../models'
|
|
export type * from './prismaNamespace'
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
export const NullTypes = {
|
|
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
}
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull = runtime.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull = runtime.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull = runtime.AnyNull
|
|
|
|
|
|
export const ModelName = {
|
|
chats: 'chats',
|
|
cities: 'cities',
|
|
comments: 'comments',
|
|
countries: 'countries',
|
|
messages: 'messages',
|
|
payment_methods: 'payment_methods',
|
|
professionals: 'professionals',
|
|
professions: 'professions',
|
|
regions: 'regions',
|
|
reputations: 'reputations',
|
|
schedules: 'schedules',
|
|
services: 'services',
|
|
settings: 'settings',
|
|
specializations: 'specializations',
|
|
users: 'users'
|
|
} as const
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
/*
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
} as const)
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const ChatsScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
professional_id: 'professional_id',
|
|
created_at: 'created_at'
|
|
} as const
|
|
|
|
export type ChatsScalarFieldEnum = (typeof ChatsScalarFieldEnum)[keyof typeof ChatsScalarFieldEnum]
|
|
|
|
|
|
export const CitiesScalarFieldEnum = {
|
|
id: 'id',
|
|
region_id: 'region_id',
|
|
name: 'name',
|
|
latitude: 'latitude',
|
|
longitude: 'longitude'
|
|
} as const
|
|
|
|
export type CitiesScalarFieldEnum = (typeof CitiesScalarFieldEnum)[keyof typeof CitiesScalarFieldEnum]
|
|
|
|
|
|
export const CommentsScalarFieldEnum = {
|
|
id: 'id',
|
|
author_id: 'author_id',
|
|
destination_id: 'destination_id',
|
|
service_id: 'service_id',
|
|
content: 'content',
|
|
score: 'score',
|
|
is_from_user: 'is_from_user',
|
|
created_at: 'created_at'
|
|
} as const
|
|
|
|
export type CommentsScalarFieldEnum = (typeof CommentsScalarFieldEnum)[keyof typeof CommentsScalarFieldEnum]
|
|
|
|
|
|
export const CountriesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name'
|
|
} as const
|
|
|
|
export type CountriesScalarFieldEnum = (typeof CountriesScalarFieldEnum)[keyof typeof CountriesScalarFieldEnum]
|
|
|
|
|
|
export const MessagesScalarFieldEnum = {
|
|
id: 'id',
|
|
chat_id: 'chat_id',
|
|
sender_id: 'sender_id',
|
|
content: 'content',
|
|
created_at: 'created_at'
|
|
} as const
|
|
|
|
export type MessagesScalarFieldEnum = (typeof MessagesScalarFieldEnum)[keyof typeof MessagesScalarFieldEnum]
|
|
|
|
|
|
export const Payment_methodsScalarFieldEnum = {
|
|
id: 'id',
|
|
professional_id: 'professional_id',
|
|
nequi: 'nequi',
|
|
datafono: 'datafono',
|
|
transferencia: 'transferencia'
|
|
} as const
|
|
|
|
export type Payment_methodsScalarFieldEnum = (typeof Payment_methodsScalarFieldEnum)[keyof typeof Payment_methodsScalarFieldEnum]
|
|
|
|
|
|
export const ProfessionalsScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
identification: 'identification',
|
|
address: 'address',
|
|
additional_address: 'additional_address',
|
|
profession: 'profession',
|
|
rate: 'rate',
|
|
rate_preferences: 'rate_preferences',
|
|
location_preferences: 'location_preferences',
|
|
banner_picture: 'banner_picture',
|
|
identification_picture: 'identification_picture',
|
|
certificate_picture: 'certificate_picture',
|
|
latitude: 'latitude',
|
|
longitude: 'longitude',
|
|
average_score: 'average_score',
|
|
is_active: 'is_active',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
} as const
|
|
|
|
export type ProfessionalsScalarFieldEnum = (typeof ProfessionalsScalarFieldEnum)[keyof typeof ProfessionalsScalarFieldEnum]
|
|
|
|
|
|
export const ProfessionsScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name'
|
|
} as const
|
|
|
|
export type ProfessionsScalarFieldEnum = (typeof ProfessionsScalarFieldEnum)[keyof typeof ProfessionsScalarFieldEnum]
|
|
|
|
|
|
export const RegionsScalarFieldEnum = {
|
|
id: 'id',
|
|
country_id: 'country_id',
|
|
name: 'name'
|
|
} as const
|
|
|
|
export type RegionsScalarFieldEnum = (typeof RegionsScalarFieldEnum)[keyof typeof RegionsScalarFieldEnum]
|
|
|
|
|
|
export const ReputationsScalarFieldEnum = {
|
|
user_id: 'user_id',
|
|
total: 'total',
|
|
average: 'average',
|
|
total_pro: 'total_pro',
|
|
average_pro: 'average_pro',
|
|
updated_at: 'updated_at'
|
|
} as const
|
|
|
|
export type ReputationsScalarFieldEnum = (typeof ReputationsScalarFieldEnum)[keyof typeof ReputationsScalarFieldEnum]
|
|
|
|
|
|
export const SchedulesScalarFieldEnum = {
|
|
id: 'id',
|
|
professional_id: 'professional_id',
|
|
day_of_week: 'day_of_week',
|
|
enabled: 'enabled',
|
|
continuous_day: 'continuous_day',
|
|
range1_hour1: 'range1_hour1',
|
|
range1_hour2: 'range1_hour2',
|
|
range2_hour1: 'range2_hour1',
|
|
range2_hour2: 'range2_hour2'
|
|
} as const
|
|
|
|
export type SchedulesScalarFieldEnum = (typeof SchedulesScalarFieldEnum)[keyof typeof SchedulesScalarFieldEnum]
|
|
|
|
|
|
export const ServicesScalarFieldEnum = {
|
|
id: 'id',
|
|
professional_id: 'professional_id',
|
|
user_id: 'user_id',
|
|
address: 'address',
|
|
additional_address: 'additional_address',
|
|
latitude: 'latitude',
|
|
longitude: 'longitude',
|
|
day: 'day',
|
|
description: 'description',
|
|
rate: 'rate',
|
|
range1_hour1: 'range1_hour1',
|
|
range1_hour2: 'range1_hour2',
|
|
status: 'status',
|
|
location_preference: 'location_preference',
|
|
professional_scored: 'professional_scored',
|
|
user_scored: 'user_scored',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
} as const
|
|
|
|
export type ServicesScalarFieldEnum = (typeof ServicesScalarFieldEnum)[keyof typeof ServicesScalarFieldEnum]
|
|
|
|
|
|
export const SettingsScalarFieldEnum = {
|
|
key: 'key',
|
|
value: 'value',
|
|
updated_at: 'updated_at'
|
|
} as const
|
|
|
|
export type SettingsScalarFieldEnum = (typeof SettingsScalarFieldEnum)[keyof typeof SettingsScalarFieldEnum]
|
|
|
|
|
|
export const SpecializationsScalarFieldEnum = {
|
|
id: 'id',
|
|
professional_id: 'professional_id',
|
|
name: 'name',
|
|
picture: 'picture'
|
|
} as const
|
|
|
|
export type SpecializationsScalarFieldEnum = (typeof SpecializationsScalarFieldEnum)[keyof typeof SpecializationsScalarFieldEnum]
|
|
|
|
|
|
export const UsersScalarFieldEnum = {
|
|
id: 'id',
|
|
email: 'email',
|
|
phone: 'phone',
|
|
password_hash: 'password_hash',
|
|
name: 'name',
|
|
nickname: 'nickname',
|
|
city: 'city',
|
|
picture: 'picture',
|
|
birthday: 'birthday',
|
|
gender: 'gender',
|
|
pro_state: 'pro_state',
|
|
fcm_token: 'fcm_token',
|
|
is_phone_verified: 'is_phone_verified',
|
|
is_email_verified: 'is_email_verified',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
} as const
|
|
|
|
export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
} as const
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const JsonNullValueInput = {
|
|
JsonNull: JsonNull
|
|
} as const
|
|
|
|
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
|
|
|
|
export const QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
} as const
|
|
|
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
|
|
|
|
export const NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
} as const
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|
|
|
|
export const JsonNullValueFilter = {
|
|
DbNull: DbNull,
|
|
JsonNull: JsonNull,
|
|
AnyNull: AnyNull
|
|
} as const
|
|
|
|
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
|