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

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

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