diff --git a/templates/cli/lib/commands/config.ts b/templates/cli/lib/commands/config.ts index d5d568cabe..1482754ab1 100644 --- a/templates/cli/lib/commands/config.ts +++ b/templates/cli/lib/commands/config.ts @@ -203,6 +203,7 @@ const AttributeSchema = z "mediumtext", "longtext", "integer", + "bigint", "double", "boolean", "datetime", @@ -283,6 +284,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,