var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result) __defProp(target, key, result);
  return result;
};
import { OptionalProps } from "@mikro-orm/core";
import { Entity, Index, PrimaryKey, Property } from "@mikro-orm/decorators/legacy";
OptionalProps;
let SyncExcelUpload = class {
  constructor() {
    this.status = "uploaded";
    this.createdAt = /* @__PURE__ */ new Date();
    this.updatedAt = /* @__PURE__ */ new Date();
  }
};
__decorateClass([
  PrimaryKey({ type: "uuid", defaultRaw: "gen_random_uuid()" })
], SyncExcelUpload.prototype, "id", 2);
__decorateClass([
  Property({ name: "attachment_id", type: "uuid" })
], SyncExcelUpload.prototype, "attachmentId", 2);
__decorateClass([
  Property({ name: "filename", type: "text" })
], SyncExcelUpload.prototype, "filename", 2);
__decorateClass([
  Property({ name: "mime_type", type: "text" })
], SyncExcelUpload.prototype, "mimeType", 2);
__decorateClass([
  Property({ name: "file_size", type: "int" })
], SyncExcelUpload.prototype, "fileSize", 2);
__decorateClass([
  Property({ name: "entity_type", type: "text" })
], SyncExcelUpload.prototype, "entityType", 2);
__decorateClass([
  Property({ name: "delimiter", type: "text", nullable: true })
], SyncExcelUpload.prototype, "delimiter", 2);
__decorateClass([
  Property({ name: "encoding", type: "text", nullable: true })
], SyncExcelUpload.prototype, "encoding", 2);
__decorateClass([
  Property({ name: "headers", type: "json" })
], SyncExcelUpload.prototype, "headers", 2);
__decorateClass([
  Property({ name: "sample_rows", type: "json" })
], SyncExcelUpload.prototype, "sampleRows", 2);
__decorateClass([
  Property({ name: "total_rows", type: "int" })
], SyncExcelUpload.prototype, "totalRows", 2);
__decorateClass([
  Property({ name: "status", type: "text", default: "uploaded" })
], SyncExcelUpload.prototype, "status", 2);
__decorateClass([
  Property({ name: "sync_run_id", type: "uuid", nullable: true })
], SyncExcelUpload.prototype, "syncRunId", 2);
__decorateClass([
  Property({ name: "organization_id", type: "uuid" })
], SyncExcelUpload.prototype, "organizationId", 2);
__decorateClass([
  Property({ name: "tenant_id", type: "uuid" })
], SyncExcelUpload.prototype, "tenantId", 2);
__decorateClass([
  Property({ name: "created_at", type: Date, onCreate: () => /* @__PURE__ */ new Date() })
], SyncExcelUpload.prototype, "createdAt", 2);
__decorateClass([
  Property({ name: "updated_at", type: Date, onUpdate: () => /* @__PURE__ */ new Date() })
], SyncExcelUpload.prototype, "updatedAt", 2);
SyncExcelUpload = __decorateClass([
  Entity({ tableName: "sync_excel_uploads" }),
  Index({ properties: ["organizationId", "tenantId", "status"] })
], SyncExcelUpload);
export {
  SyncExcelUpload
};
//# sourceMappingURL=entities.js.map
