2024-07-26 14:35:36 +02:00
|
|
|
export const PROTECTED_INTERNAL_COLUMNS = [
|
2024-06-26 13:40:16 +02:00
|
|
|
"_id",
|
|
|
|
"_rev",
|
|
|
|
"type",
|
|
|
|
"createdAt",
|
|
|
|
"updatedAt",
|
|
|
|
"tableId",
|
|
|
|
] as const
|
|
|
|
|
2024-07-26 14:37:47 +02:00
|
|
|
export const PROTECTED_EXTERNAL_COLUMNS = ["_id", "_rev", "tableId"] as const
|
2024-06-26 13:40:16 +02:00
|
|
|
|
|
|
|
export function isInternalColumnName(name: string): boolean {
|
2024-07-26 14:35:36 +02:00
|
|
|
return (PROTECTED_INTERNAL_COLUMNS as readonly string[]).includes(name)
|
2024-06-26 13:40:16 +02:00
|
|
|
}
|
2024-11-04 14:33:12 +01:00
|
|
|
|
|
|
|
export function isExternalColumnName(name: string): boolean {
|
|
|
|
return (PROTECTED_EXTERNAL_COLUMNS as readonly string[]).includes(name)
|
|
|
|
}
|