UNPKG

appwrite-utils-cli

Version:

Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.

125 lines 2.99 kB
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.com/schemas/users.json", "title": "Users", "description": "Schema for Users collection", "type": "object", "properties": { "$id": { "type": "string", "description": "Document ID", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,35}$" }, "$createdAt": { "type": "string", "format": "date-time", "description": "Document creation date" }, "$updatedAt": { "type": "string", "format": "date-time", "description": "Document last update date" }, "$permissions": { "type": "array", "items": { "type": "string" }, "description": "Document permissions" }, "name": { "type": "string", "description": "User's full name", "maxLength": 100 }, "email": { "type": "string", "description": "User's email address for authentication", "format": "email" }, "username": { "type": "string", "description": "Unique username handle", "maxLength": 50 }, "avatar": { "type": "string", "description": "User avatar file ID stored in Appwrite storage", "maxLength": 255 }, "phone": { "type": "string", "description": "User's phone number", "maxLength": 20 }, "bio": { "type": "string", "description": "User biography or description", "maxLength": 500 }, "dateOfBirth": { "type": "string", "description": "User's date of birth", "format": "date-time" }, "location": { "type": "string", "description": "User's location or city", "maxLength": 100 }, "role": { "type": "string", "description": "User's role in the system", "enum": [ "admin", "user", "moderator", "editor" ], "default": "user" }, "isActive": { "type": "boolean", "description": "Whether the user account is active", "default": true }, "isVerified": { "type": "boolean", "description": "Whether the user's email is verified", "default": false }, "profileViews": { "type": "integer", "description": "Number of times user profile has been viewed", "minimum": 0, "default": 0 }, "lastLoginAt": { "type": "string", "description": "Timestamp of user's last login", "format": "date-time" }, "socialLinks": { "type": "string", "description": "JSON string of social media links", "maxLength": 1000 }, "preferences": { "type": "string", "description": "JSON string of user preferences and settings", "maxLength": 2000 } }, "required": [ "$id", "$createdAt", "$updatedAt", "name", "email", "role", "isActive", "isVerified", "profileViews" ], "additionalProperties": false }