Replace Revit CSV backend with Linear XLSX
This commit is contained in:
parent
52d3b1a270
commit
1cfeb06ec7
65 changed files with 4764 additions and 3717 deletions
|
|
@ -1,9 +1,7 @@
|
|||
import { blob, index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||
import type {
|
||||
ExternalCsvConfiguration,
|
||||
ExternalCsvDocument,
|
||||
} from "../../external-model/csv/external-csv-contracts.js";
|
||||
import type { ExternalModelConfiguration } from "../../external-model/configuration/external-model-configuration.js";
|
||||
import { externalImportKinds } from "../../external-model/domain/external-model-contracts.js";
|
||||
import type { ExternalXlsxDocument } from "../../external-model/xlsx/external-xlsx-contracts.js";
|
||||
import { externalModelSources } from "./external-model-sources.js";
|
||||
import { projects } from "./projects.js";
|
||||
|
||||
|
|
@ -21,15 +19,13 @@ export const externalImportBatches = sqliteTable(
|
|||
importedAtIso: text("imported_at_iso").notNull(),
|
||||
fileName: text("file_name").notNull(),
|
||||
sha256: text("sha256").notNull(),
|
||||
appliedProjectRevision: integer("applied_project_revision").notNull(),
|
||||
configurationVersion: integer("configuration_version").notNull(),
|
||||
objectCount: integer("object_count").notNull(),
|
||||
appliedProjectRevision: integer("applied_project_revision"),
|
||||
configurationSnapshot: text("configuration_snapshot", { mode: "json" })
|
||||
.$type<ExternalCsvConfiguration>()
|
||||
.notNull(),
|
||||
originalBytes: blob("original_bytes", { mode: "buffer" }).notNull(),
|
||||
.$type<ExternalModelConfiguration>(),
|
||||
originalBytes: blob("original_bytes", { mode: "buffer" }),
|
||||
document: text("document", { mode: "json" })
|
||||
.$type<ExternalCsvDocument>()
|
||||
.notNull(),
|
||||
.$type<ExternalXlsxDocument>(),
|
||||
},
|
||||
(table) => [
|
||||
index("external_import_batches_project_revision_idx").on(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue