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 { Entity, Index, PrimaryKey, Property } from "@mikro-orm/decorators/legacy";
let EntityTranslation = class {
  constructor() {
    this.createdAt = /* @__PURE__ */ new Date();
    this.updatedAt = /* @__PURE__ */ new Date();
  }
};
__decorateClass([
  PrimaryKey({ type: "uuid", defaultRaw: "gen_random_uuid()" })
], EntityTranslation.prototype, "id", 2);
__decorateClass([
  Property({ name: "entity_type", type: "text" }),
  Index({ name: "entity_translations_type_idx" })
], EntityTranslation.prototype, "entityType", 2);
__decorateClass([
  Property({ name: "entity_id", type: "text" }),
  Index({ name: "entity_translations_entity_idx" })
], EntityTranslation.prototype, "entityId", 2);
__decorateClass([
  Property({ name: "organization_id", type: "uuid", nullable: true })
], EntityTranslation.prototype, "organizationId", 2);
__decorateClass([
  Property({ name: "tenant_id", type: "uuid", nullable: true })
], EntityTranslation.prototype, "tenantId", 2);
__decorateClass([
  Property({ name: "translations", type: "jsonb" })
], EntityTranslation.prototype, "translations", 2);
__decorateClass([
  Property({ name: "created_at", type: Date, onCreate: () => /* @__PURE__ */ new Date() })
], EntityTranslation.prototype, "createdAt", 2);
__decorateClass([
  Property({ name: "updated_at", type: Date, onUpdate: () => /* @__PURE__ */ new Date() })
], EntityTranslation.prototype, "updatedAt", 2);
EntityTranslation = __decorateClass([
  Entity({ tableName: "entity_translations" }),
  Index({ name: "entity_translations_type_tenant_idx", properties: ["entityType", "tenantId"] })
], EntityTranslation);
export {
  EntityTranslation
};
//# sourceMappingURL=entities.js.map
