id | string | Unique identifier for the user (UUID). |
projectId | string | Identifier of the associated project (UUID). |
foreignId | string | null | Optional external or static ID for mapping users from another system. |
role | "admin" | "moderator" | "visitor" | Role assigned to the user in the project. |
email | string | null | User’s email address. |
name | string | null | Display name. |
username | string | null | Unique username. |
avatar | string | null | Avatar image URL. |
bio | string | null | Bio (up to 300 characters). |
birthdate | Date | null | Date of birth. |
location | { type: "Point", coordinates: [number, number] } | null | Optional user location in GeoJSON format. |
metadata | Record<string, any> | Public, sharable metadata (max 10KB). |
secureMetadata | Record<string, any> | Private metadata, excluded from shared views. |
reputation | number | System-managed score based on participation. |
isVerified | boolean | Whether the user is verified. |
isActive | boolean | Whether the account is currently active. |
lastActive | Date | Timestamp of most recent user activity. |
suspension | { isSuspended: boolean, reason: string | null, startDate: Date | null, endDate: Date | null } | Suspension status and duration. |
createdAt | Date | Creation timestamp. |
updatedAt | Date | Last updated timestamp. |
deletedAt | Date | null | Deletion timestamp, if applicable. |