const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
let __credo_ts_core = require("@credo-ts/core");
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);

//#region ../tenants/src/repository/TenantRecord.ts
var TenantRecord = class TenantRecord extends __credo_ts_core.BaseRecord {
	constructor(props) {
		super();
		this.type = TenantRecord.type;
		this.storageVersion = "0.4";
		if (props) {
			this.id = props.id ?? __credo_ts_core.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
exports.TenantRecord = TenantRecord;