TenantAtlas/apps/platform/.pnpm-store/v10/files/8d/7b65d8140218e4cb1ddfeb68a1d76cd81f264dea1061b09f1e1bd4b4436bd10e59802fb137034e5f46e5325829c098d8e3b004a4c82394a091df803617bfac
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

32 lines
764 B
Plaintext

import { entityKind } from "../../entity.js";
import { PgColumn, PgColumnBuilder } from "./common.js";
class PgSmallSerialBuilder extends PgColumnBuilder {
static [entityKind] = "PgSmallSerialBuilder";
constructor(name) {
super(name, "number", "PgSmallSerial");
this.config.hasDefault = true;
this.config.notNull = true;
}
/** @internal */
build(table) {
return new PgSmallSerial(
table,
this.config
);
}
}
class PgSmallSerial extends PgColumn {
static [entityKind] = "PgSmallSerial";
getSQLType() {
return "smallserial";
}
}
function smallserial(name) {
return new PgSmallSerialBuilder(name ?? "");
}
export {
PgSmallSerial,
PgSmallSerialBuilder,
smallserial
};
//# sourceMappingURL=smallserial.js.map