757 lines
19 KiB
JavaScript
757 lines
19 KiB
JavaScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
/* eslint-disable */
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const {
|
|
Decimal,
|
|
objectEnumValues,
|
|
makeStrictEnum,
|
|
Public,
|
|
getRuntime,
|
|
skip
|
|
} = require('./runtime/index-browser.js')
|
|
|
|
|
|
const Prisma = {}
|
|
|
|
exports.Prisma = Prisma
|
|
exports.$Enums = {}
|
|
|
|
/**
|
|
* Prisma Client JS version: 6.11.1
|
|
* Query Engine version: f40f79ec31188888a2e33acda0ecc8fd10a853a9
|
|
*/
|
|
Prisma.prismaVersion = {
|
|
client: "6.11.1",
|
|
engine: "f40f79ec31188888a2e33acda0ecc8fd10a853a9"
|
|
}
|
|
|
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)};
|
|
Prisma.PrismaClientUnknownRequestError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.PrismaClientRustPanicError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.PrismaClientInitializationError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.PrismaClientValidationError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.Decimal = Decimal
|
|
|
|
/**
|
|
* Re-export of sql-template-tag
|
|
*/
|
|
Prisma.sql = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.empty = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.join = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.raw = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.validator = Public.validator
|
|
|
|
/**
|
|
* Extensions
|
|
*/
|
|
Prisma.getExtensionContext = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.defineExtension = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
|
|
/**
|
|
* Shorthand utilities for JSON filtering
|
|
*/
|
|
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
|
|
Prisma.NullTypes = {
|
|
DbNull: objectEnumValues.classes.DbNull,
|
|
JsonNull: objectEnumValues.classes.JsonNull,
|
|
AnyNull: objectEnumValues.classes.AnyNull
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
|
|
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
});
|
|
|
|
exports.Prisma.ProfilesScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
avatar: 'avatar',
|
|
username: 'username',
|
|
first_name: 'first_name',
|
|
last_name: 'last_name',
|
|
bio: 'bio',
|
|
address: 'address',
|
|
birth_date: 'birth_date',
|
|
nik: 'nik',
|
|
birth_place: 'birth_place'
|
|
};
|
|
|
|
exports.Prisma.RelationLoadStrategy = {
|
|
query: 'query',
|
|
join: 'join'
|
|
};
|
|
|
|
exports.Prisma.UsersScalarFieldEnum = {
|
|
id: 'id',
|
|
roles_id: 'roles_id',
|
|
email: 'email',
|
|
phone: 'phone',
|
|
encrypted_password: 'encrypted_password',
|
|
invited_at: 'invited_at',
|
|
confirmed_at: 'confirmed_at',
|
|
email_confirmed_at: 'email_confirmed_at',
|
|
recovery_sent_at: 'recovery_sent_at',
|
|
last_sign_in_at: 'last_sign_in_at',
|
|
app_metadata: 'app_metadata',
|
|
user_metadata: 'user_metadata',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
banned_until: 'banned_until',
|
|
is_anonymous: 'is_anonymous',
|
|
banned_reason: 'banned_reason',
|
|
is_banned: 'is_banned',
|
|
panic_strike: 'panic_strike',
|
|
spoofing_attempts: 'spoofing_attempts'
|
|
};
|
|
|
|
exports.Prisma.RolesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.SessionsScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
event_id: 'event_id',
|
|
status: 'status',
|
|
created_at: 'created_at'
|
|
};
|
|
|
|
exports.Prisma.EventsScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
code: 'code',
|
|
created_at: 'created_at',
|
|
user_id: 'user_id'
|
|
};
|
|
|
|
exports.Prisma.ResourcesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
type: 'type',
|
|
description: 'description',
|
|
instance_role: 'instance_role',
|
|
relations: 'relations',
|
|
attributes: 'attributes',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.PermissionsScalarFieldEnum = {
|
|
id: 'id',
|
|
action: 'action',
|
|
resource_id: 'resource_id',
|
|
role_id: 'role_id',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.CitiesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Crime_incidentsScalarFieldEnum = {
|
|
id: 'id',
|
|
crime_id: 'crime_id',
|
|
crime_category_id: 'crime_category_id',
|
|
location_id: 'location_id',
|
|
description: 'description',
|
|
victim_count: 'victim_count',
|
|
status: 'status',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
timestamp: 'timestamp'
|
|
};
|
|
|
|
exports.Prisma.Crime_categoriesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
type: 'type'
|
|
};
|
|
|
|
exports.Prisma.CrimesScalarFieldEnum = {
|
|
id: 'id',
|
|
district_id: 'district_id',
|
|
created_at: 'created_at',
|
|
level: 'level',
|
|
method: 'method',
|
|
month: 'month',
|
|
number_of_crime: 'number_of_crime',
|
|
score: 'score',
|
|
updated_at: 'updated_at',
|
|
year: 'year',
|
|
source_type: 'source_type',
|
|
crime_cleared: 'crime_cleared',
|
|
avg_crime: 'avg_crime'
|
|
};
|
|
|
|
exports.Prisma.DemographicsScalarFieldEnum = {
|
|
id: 'id',
|
|
district_id: 'district_id',
|
|
population: 'population',
|
|
number_of_unemployed: 'number_of_unemployed',
|
|
population_density: 'population_density',
|
|
year: 'year',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.DistrictsScalarFieldEnum = {
|
|
id: 'id',
|
|
city_id: 'city_id',
|
|
name: 'name',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.LocationsScalarFieldEnum = {
|
|
id: 'id',
|
|
district_id: 'district_id',
|
|
event_id: 'event_id',
|
|
address: 'address',
|
|
type: 'type',
|
|
latitude: 'latitude',
|
|
longitude: 'longitude',
|
|
land_area: 'land_area',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
distance_to_unit: 'distance_to_unit'
|
|
};
|
|
|
|
exports.Prisma.Incident_logsScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
location_id: 'location_id',
|
|
category_id: 'category_id',
|
|
description: 'description',
|
|
source: 'source',
|
|
time: 'time',
|
|
verified: 'verified',
|
|
severity: 'severity',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.TimelinesScalarFieldEnum = {
|
|
id: 'id',
|
|
incident_logs_id: 'incident_logs_id',
|
|
crime_incidents_id: 'crime_incidents_id',
|
|
user_id: 'user_id',
|
|
title: 'title',
|
|
description: 'description',
|
|
timestamp: 'timestamp',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.WitnessesScalarFieldEnum = {
|
|
id: 'id',
|
|
incident_logs_id: 'incident_logs_id',
|
|
crime_incidents_id: 'crime_incidents_id',
|
|
name: 'name',
|
|
contact_info: 'contact_info',
|
|
statement: 'statement',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.EvidenceScalarFieldEnum = {
|
|
incident_logs_id: 'incident_logs_id',
|
|
crime_incidents_id: 'crime_incidents_id',
|
|
type: 'type',
|
|
url: 'url',
|
|
status: 'status',
|
|
uploaded_at: 'uploaded_at',
|
|
updated_at: 'updated_at',
|
|
caption: 'caption',
|
|
description: 'description',
|
|
metadata: 'metadata',
|
|
id: 'id'
|
|
};
|
|
|
|
exports.Prisma.UnitsScalarFieldEnum = {
|
|
code_unit: 'code_unit',
|
|
district_id: 'district_id',
|
|
name: 'name',
|
|
description: 'description',
|
|
type: 'type',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
address: 'address',
|
|
land_area: 'land_area',
|
|
latitude: 'latitude',
|
|
longitude: 'longitude',
|
|
city_id: 'city_id',
|
|
phone: 'phone'
|
|
};
|
|
|
|
exports.Prisma.Patrol_unitsScalarFieldEnum = {
|
|
unit_id: 'unit_id',
|
|
location_id: 'location_id',
|
|
name: 'name',
|
|
type: 'type',
|
|
status: 'status',
|
|
radius: 'radius',
|
|
created_at: 'created_at',
|
|
id: 'id',
|
|
category: 'category',
|
|
member_count: 'member_count',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.OfficersScalarFieldEnum = {
|
|
unit_id: 'unit_id',
|
|
role_id: 'role_id',
|
|
nrp: 'nrp',
|
|
name: 'name',
|
|
rank: 'rank',
|
|
position: 'position',
|
|
phone: 'phone',
|
|
email: 'email',
|
|
avatar: 'avatar',
|
|
valid_until: 'valid_until',
|
|
qr_code: 'qr_code',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
patrol_unit_id: 'patrol_unit_id',
|
|
id: 'id',
|
|
banned_reason: 'banned_reason',
|
|
banned_until: 'banned_until',
|
|
is_banned: 'is_banned',
|
|
panic_strike: 'panic_strike',
|
|
spoofing_attempts: 'spoofing_attempts',
|
|
place_of_birth: 'place_of_birth',
|
|
date_of_birth: 'date_of_birth'
|
|
};
|
|
|
|
exports.Prisma.Unit_statisticsScalarFieldEnum = {
|
|
id: 'id',
|
|
crime_total: 'crime_total',
|
|
crime_cleared: 'crime_cleared',
|
|
percentage: 'percentage',
|
|
pending: 'pending',
|
|
month: 'month',
|
|
year: 'year',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
code_unit: 'code_unit'
|
|
};
|
|
|
|
exports.Prisma.GeographicsScalarFieldEnum = {
|
|
id: 'id',
|
|
district_id: 'district_id',
|
|
address: 'address',
|
|
longitude: 'longitude',
|
|
latitude: 'latitude',
|
|
land_area: 'land_area',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
description: 'description',
|
|
type: 'type',
|
|
year: 'year'
|
|
};
|
|
|
|
exports.Prisma.Contact_messagesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
email: 'email',
|
|
phone: 'phone',
|
|
message_type: 'message_type',
|
|
message_type_label: 'message_type_label',
|
|
message: 'message',
|
|
status: 'status',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.MessagesScalarFieldEnum = {
|
|
id: 'id',
|
|
subject: 'subject',
|
|
content: 'content',
|
|
message_type: 'message_type',
|
|
message_type_label: 'message_type_label',
|
|
sender_user_id: 'sender_user_id',
|
|
sender_officer_id: 'sender_officer_id',
|
|
recipient_user_id: 'recipient_user_id',
|
|
recipient_officer_id: 'recipient_officer_id',
|
|
inbox_id: 'inbox_id',
|
|
status: 'status',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
file_url: 'file_url',
|
|
file_type: 'file_type',
|
|
file_name: 'file_name',
|
|
is_starred: 'is_starred'
|
|
};
|
|
|
|
exports.Prisma.InboxScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
officer_id: 'officer_id',
|
|
unread_count: 'unread_count',
|
|
last_updated: 'last_updated',
|
|
created_at: 'created_at'
|
|
};
|
|
|
|
exports.Prisma.LogsScalarFieldEnum = {
|
|
id: 'id',
|
|
action: 'action',
|
|
entity: 'entity',
|
|
entity_id: 'entity_id',
|
|
changes: 'changes',
|
|
user_id: 'user_id',
|
|
ip_address: 'ip_address',
|
|
user_agent: 'user_agent',
|
|
created_at: 'created_at'
|
|
};
|
|
|
|
exports.Prisma.Panic_button_logsScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
officer_id: 'officer_id',
|
|
incident_logs_id: 'incident_logs_id',
|
|
timestamp: 'timestamp'
|
|
};
|
|
|
|
exports.Prisma.Location_logsScalarFieldEnum = {
|
|
id: 'id',
|
|
location_id: 'location_id',
|
|
latitude: 'latitude',
|
|
longitude: 'longitude',
|
|
timestamp: 'timestamp',
|
|
description: 'description',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.District_clustersScalarFieldEnum = {
|
|
id: 'id',
|
|
district_id: 'district_id',
|
|
year: 'year',
|
|
month: 'month',
|
|
risk_level: 'risk_level',
|
|
total_crimes: 'total_crimes',
|
|
population_density: 'population_density',
|
|
unemployment_rate: 'unemployment_rate',
|
|
crime_score: 'crime_score',
|
|
density_score: 'density_score',
|
|
unemployment_score: 'unemployment_score',
|
|
cluster_score: 'cluster_score',
|
|
centroid_features: 'centroid_features',
|
|
member_count: 'member_count',
|
|
last_update_type: 'last_update_type',
|
|
update_count: 'update_count',
|
|
needs_recompute: 'needs_recompute',
|
|
incidents_data: 'incidents_data',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Cluster_updatesScalarFieldEnum = {
|
|
id: 'id',
|
|
district_id: 'district_id',
|
|
update_type: 'update_type',
|
|
old_value: 'old_value',
|
|
new_value: 'new_value',
|
|
processed: 'processed',
|
|
timestamp: 'timestamp'
|
|
};
|
|
|
|
exports.Prisma.TaskScalarFieldEnum = {
|
|
id: 'id',
|
|
user_id: 'user_id',
|
|
code: 'code',
|
|
title: 'title',
|
|
status: 'status',
|
|
label: 'label',
|
|
priority: 'priority',
|
|
estimated_hours: 'estimated_hours',
|
|
archived: 'archived',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.ProjectsScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
user_id: 'user_id',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.DatasetsScalarFieldEnum = {
|
|
id: 'id',
|
|
project_id: 'project_id',
|
|
filename: 'filename',
|
|
original_name: 'original_name',
|
|
file_size: 'file_size',
|
|
columns: 'columns',
|
|
row_count: 'row_count',
|
|
metadata: 'metadata',
|
|
created_at: 'created_at'
|
|
};
|
|
|
|
exports.Prisma.AnalysesScalarFieldEnum = {
|
|
id: 'id',
|
|
project_id: 'project_id',
|
|
dataset_id: 'dataset_id',
|
|
name: 'name',
|
|
config: 'config',
|
|
results: 'results',
|
|
status: 'status',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.ClustersScalarFieldEnum = {
|
|
id: 'id',
|
|
analysis_id: 'analysis_id',
|
|
cluster_id: 'cluster_id',
|
|
center_data: 'center_data',
|
|
point_count: 'point_count',
|
|
characteristics: 'characteristics'
|
|
};
|
|
|
|
exports.Prisma.Analysis_templatesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
config: 'config',
|
|
user_id: 'user_id',
|
|
is_public: 'is_public',
|
|
created_at: 'created_at'
|
|
};
|
|
|
|
exports.Prisma.SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull
|
|
};
|
|
|
|
exports.Prisma.JsonNullValueInput = {
|
|
JsonNull: Prisma.JsonNull
|
|
};
|
|
|
|
exports.Prisma.QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
};
|
|
|
|
exports.Prisma.JsonNullValueFilter = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull,
|
|
AnyNull: Prisma.AnyNull
|
|
};
|
|
|
|
exports.Prisma.NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
};
|
|
exports.session_status = exports.$Enums.session_status = {
|
|
active: 'active',
|
|
completed: 'completed'
|
|
};
|
|
|
|
exports.crime_status = exports.$Enums.crime_status = {
|
|
open: 'open',
|
|
closed: 'closed',
|
|
under_investigation: 'under_investigation',
|
|
resolved: 'resolved',
|
|
unresolved: 'unresolved'
|
|
};
|
|
|
|
exports.crime_rates = exports.$Enums.crime_rates = {
|
|
low: 'low',
|
|
medium: 'medium',
|
|
high: 'high',
|
|
critical: 'critical'
|
|
};
|
|
|
|
exports.unit_type = exports.$Enums.unit_type = {
|
|
polda: 'polda',
|
|
polsek: 'polsek',
|
|
polres: 'polres',
|
|
other: 'other'
|
|
};
|
|
|
|
exports.patrol_unit_category = exports.$Enums.patrol_unit_category = {
|
|
individual: 'individual',
|
|
group: 'group'
|
|
};
|
|
|
|
exports.status_messages = exports.$Enums.status_messages = {
|
|
new: 'new',
|
|
read: 'read',
|
|
replied: 'replied',
|
|
closed: 'closed'
|
|
};
|
|
|
|
exports.task_status = exports.$Enums.task_status = {
|
|
todo: 'todo',
|
|
in_progress: 'in_progress',
|
|
done: 'done',
|
|
canceled: 'canceled'
|
|
};
|
|
|
|
exports.task_label = exports.$Enums.task_label = {
|
|
report: 'report',
|
|
investigation: 'investigation',
|
|
patrol: 'patrol',
|
|
evidence: 'evidence',
|
|
documentation: 'documentation',
|
|
coordination: 'coordination',
|
|
follow_up: 'follow_up',
|
|
prevention: 'prevention',
|
|
other: 'other'
|
|
};
|
|
|
|
exports.task_priority = exports.$Enums.task_priority = {
|
|
low: 'low',
|
|
medium: 'medium',
|
|
high: 'high'
|
|
};
|
|
|
|
exports.Prisma.ModelName = {
|
|
profiles: 'profiles',
|
|
users: 'users',
|
|
roles: 'roles',
|
|
sessions: 'sessions',
|
|
events: 'events',
|
|
resources: 'resources',
|
|
permissions: 'permissions',
|
|
cities: 'cities',
|
|
crime_incidents: 'crime_incidents',
|
|
crime_categories: 'crime_categories',
|
|
crimes: 'crimes',
|
|
demographics: 'demographics',
|
|
districts: 'districts',
|
|
locations: 'locations',
|
|
incident_logs: 'incident_logs',
|
|
timelines: 'timelines',
|
|
witnesses: 'witnesses',
|
|
evidence: 'evidence',
|
|
units: 'units',
|
|
patrol_units: 'patrol_units',
|
|
officers: 'officers',
|
|
unit_statistics: 'unit_statistics',
|
|
geographics: 'geographics',
|
|
contact_messages: 'contact_messages',
|
|
messages: 'messages',
|
|
inbox: 'inbox',
|
|
logs: 'logs',
|
|
panic_button_logs: 'panic_button_logs',
|
|
location_logs: 'location_logs',
|
|
district_clusters: 'district_clusters',
|
|
cluster_updates: 'cluster_updates',
|
|
task: 'task',
|
|
projects: 'projects',
|
|
datasets: 'datasets',
|
|
analyses: 'analyses',
|
|
clusters: 'clusters',
|
|
analysis_templates: 'analysis_templates'
|
|
};
|
|
|
|
/**
|
|
* This is a stub Prisma Client that will error at runtime if called.
|
|
*/
|
|
class PrismaClient {
|
|
constructor() {
|
|
return new Proxy(this, {
|
|
get(target, prop) {
|
|
let message
|
|
const runtime = getRuntime()
|
|
if (runtime.isEdge) {
|
|
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
`;
|
|
} else {
|
|
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
}
|
|
|
|
message += `
|
|
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
|
|
|
throw new Error(message)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
exports.PrismaClient = PrismaClient
|
|
|
|
Object.assign(exports, Prisma)
|