import { BaseRecord, utils } from "@credo-ts/core";

//#region ../tenants/src/repository/TenantRoutingRecord.ts
var TenantRoutingRecord = class TenantRoutingRecord extends BaseRecord {
	constructor(props) {
		super();
		this.type = TenantRoutingRecord.type;
		if (props) {
			this.id = props.id ?? utils.uuid();
			this.createdAt = props.createdAt ?? /* @__PURE__ */ new Date();
			this._tags = props.tags ?? {};
			this.tenantId = props.tenantId;
			this.recipientKeyFingerprint = props.recipientKeyFingerprint;
		}
	}
	getTags() {
		return {
			...this._tags,
			tenantId: this.tenantId,
			recipientKeyFingerprint: this.recipientKeyFingerprint
		};
	}
};
TenantRoutingRecord.type = "TenantRoutingRecord";

//#endregion
export { TenantRoutingRecord };
//# sourceMappingURL=TenantRoutingRecord.mjs.map