diff --git a/templates/cli/lib/commands/config.ts b/templates/cli/lib/commands/config.ts index b40bee6403..662f311559 100644 --- a/templates/cli/lib/commands/config.ts +++ b/templates/cli/lib/commands/config.ts @@ -211,6 +211,7 @@ const AttributeSchema = z "mediumtext", "longtext", "integer", + "bigint", "double", "boolean", "datetime", @@ -291,6 +292,7 @@ const ColumnSchema = z "mediumtext", "longtext", "integer", + "bigint", "double", "boolean", "datetime", diff --git a/templates/cli/lib/commands/utils/attributes.ts b/templates/cli/lib/commands/utils/attributes.ts index 279c28f84a..3cda601f9d 100644 --- a/templates/cli/lib/commands/utils/attributes.ts +++ b/templates/cli/lib/commands/utils/attributes.ts @@ -305,6 +305,17 @@ export class Attributes { xdefault: attribute.default, array: attribute.array, }); + case "bigint": + return databasesService.createBigIntAttribute({ + databaseId, + collectionId, + key: attribute.key, + required: attribute.required, + min: attribute.min, + max: attribute.max, + xdefault: attribute.default, + array: attribute.array, + }); case "double": return databasesService.createFloatAttribute({ databaseId, @@ -469,6 +480,16 @@ export class Attributes { max: attribute.max, xdefault: attribute.default, }); + case "bigint": + return databasesService.updateBigIntAttribute({ + databaseId, + collectionId, + key: attribute.key, + required: attribute.required, + min: attribute.min, + max: attribute.max, + xdefault: attribute.default, + }); case "double": return databasesService.updateFloatAttribute({ databaseId,