|
|
|
@ -4,10 +4,8 @@ const linkRows = require("../db/linkedRows") |
|
|
|
const { cloneDeep } = require("lodash/fp") |
|
|
|
const { FieldTypes, AutoFieldSubTypes } = require("../constants") |
|
|
|
const CouchDB = require("../db") |
|
|
|
const { ViewNames } = require("../db/utils") |
|
|
|
|
|
|
|
const BASE_AUTO_ID = 1 |
|
|
|
const USER_TABLE_ID = ViewNames.USERS |
|
|
|
|
|
|
|
/** |
|
|
|
* A map of how we convert various properties in rows to each other based on the row type. |
|
|
|
@ -67,10 +65,6 @@ const TYPE_TRANSFORM_MAP = { |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
function getAutoRelationshipName(table, columnName) { |
|
|
|
return `${table.name}-${columnName}` |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* This will update any auto columns that are found on the row/table with the correct information based on |
|
|
|
* time now and the current logged in user making the request. |
|
|
|
|