default: {
camelToSnake: {
canonicalName: "canonical_name";
displayName: "display_name";
inviteLinkCount: "invite_link_count";
isSiteModerator: "is_site_moderator";
isSuperUser: "is_super_user";
isTrusted: "is_trusted";
prefersRichTextEditor: "prefers_rich_text_editor";
registrationDate: "registration_date";
showErrorDetails: "show_error_details";
suppressedNotices: "suppressed_notices";
themePreference: "theme_preference";
userMetaID: "user_meta_id";
};
hasRevisions: false;
relations: readonly [
{
cardinality: "many";
hasRevisions: true;
name: "teams";
sourceKey: "id";
targetKey: "id";
targetTable: "teams";
through: {
sourceForeignKey: "user_id";
table: "team_members";
targetForeignKey: "team_id";
};
},
{
cardinality: "many";
hasRevisions: true;
name: "moderatorOf";
sourceKey: "id";
targetKey: "id";
targetTable: "teams";
through: {
sourceForeignKey: "user_id";
table: "team_moderators";
targetForeignKey: "team_id";
};
},
{
cardinality: "one";
hasRevisions: true;
name: "meta";
sourceKey: "user_meta_id";
targetKey: "id";
targetTable: "user_metas";
},
];
schema: {
canonicalName: StringType<true>;
displayName: StringType<true>;
email: StringType<false>;
id: StringType<false>;
inviteLinkCount: NumberType<false>;
isSiteModerator: BooleanType<false>;
isSuperUser: BooleanType<false>;
isTrusted: BooleanType<false>;
password: StringType<false>;
prefersRichTextEditor: BooleanType<false>;
registrationDate: DateType<false>;
showErrorDetails: BooleanType<false>;
suppressedNotices: ArrayType<StringType<false>, false>;
themePreference: StringType<false>;
urlName: VirtualType<string, false>;
userCanEditMetadata: VirtualType<boolean, false>;
userCanUploadTempFiles: VirtualType<boolean, false>;
userMetaID: StringType<false>;
};
tableName: "users";
views: {
publicProfile: {
project(
user: UserInstanceBase,
): {
canonicalName: string;
displayName: string;
email: string;
id: string;
isSiteModerator: boolean;
isSuperUser: boolean;
isTrusted: boolean;
registrationDate: Date;
urlName: string;
};
};
};
} = ...
Type declaration
ReadonlycamelToSnake: {
canonicalName: "canonical_name";
displayName: "display_name";
inviteLinkCount: "invite_link_count";
isSiteModerator: "is_site_moderator";
isSuperUser: "is_super_user";
isTrusted: "is_trusted";
prefersRichTextEditor: "prefers_rich_text_editor";
registrationDate: "registration_date";
showErrorDetails: "show_error_details";
suppressedNotices: "suppressed_notices";
themePreference: "theme_preference";
userMetaID: "user_meta_id";
}
ReadonlyhasRevisions: false
Readonlyrelations: readonly [
{
cardinality: "many";
hasRevisions: true;
name: "teams";
sourceKey: "id";
targetKey: "id";
targetTable: "teams";
through: {
sourceForeignKey: "user_id";
table: "team_members";
targetForeignKey: "team_id";
};
},
{
cardinality: "many";
hasRevisions: true;
name: "moderatorOf";
sourceKey: "id";
targetKey: "id";
targetTable: "teams";
through: {
sourceForeignKey: "user_id";
table: "team_moderators";
targetForeignKey: "team_id";
};
},
{
cardinality: "one";
hasRevisions: true;
name: "meta";
sourceKey: "user_meta_id";
targetKey: "id";
targetTable: "user_metas";
},
]
Readonlyschema: {
canonicalName: StringType<true>;
displayName: StringType<true>;
email: StringType<false>;
id: StringType<false>;
inviteLinkCount: NumberType<false>;
isSiteModerator: BooleanType<false>;
isSuperUser: BooleanType<false>;
isTrusted: BooleanType<false>;
password: StringType<false>;
prefersRichTextEditor: BooleanType<false>;
registrationDate: DateType<false>;
showErrorDetails: BooleanType<false>;
suppressedNotices: ArrayType<StringType<false>, false>;
themePreference: StringType<false>;
urlName: VirtualType<string, false>;
userCanEditMetadata: VirtualType<boolean, false>;
userCanUploadTempFiles: VirtualType<boolean, false>;
userMetaID: StringType<false>;
}
ReadonlytableName: "users"
Readonlyviews: {
publicProfile: {
project(
user: UserInstanceBase,
): {
canonicalName: string;
displayName: string;
email: string;
id: string;
isSiteModerator: boolean;
isSuperUser: boolean;
isTrusted: boolean;
registrationDate: Date;
urlName: string;
};
};
}