default: {
camelToSnake: {
createdBy: "created_by";
createdOn: "created_on";
originalLanguage: "original_language";
socialImageID: "social_image_id";
starRating: "star_rating";
thingID: "thing_id";
};
hasRevisions: true;
relations: readonly [
{
cardinality: "one";
hasRevisions: true;
name: "thing";
sourceKey: "thing_id";
targetTable: "things";
},
{
cardinality: "one";
hasRevisions: false;
name: "creator";
sourceKey: "created_by";
targetKey: "id";
targetTable: "users";
},
{
cardinality: "one";
hasRevisions: true;
name: "socialImage";
sourceKey: "social_image_id";
targetKey: "id";
targetTable: "files";
},
{
cardinality: "many";
hasRevisions: true;
name: "teams";
sourceKey: "id";
targetKey: "id";
targetTable: "teams";
through: {
sourceForeignKey: "review_id";
table: "review_teams";
targetForeignKey: "team_id";
};
},
];
schema: {
createdBy: StringType<true>;
createdOn: DateType<true>;
html: ObjectType<string, false>;
id: StringType<false>;
originalLanguage: StringType<false>;
socialImageID: StringType<false>;
starRating: NumberType<true>;
text: ObjectType<string, false>;
thingID: StringType<true>;
title: ObjectType<string, false>;
userCanDelete: VirtualType<unknown, false>;
userCanEdit: VirtualType<unknown, false>;
userIsAuthor: VirtualType<unknown, false>;
};
tableName: "reviews";
} = ...
Type declaration
ReadonlycamelToSnake: {
createdBy: "created_by";
createdOn: "created_on";
originalLanguage: "original_language";
socialImageID: "social_image_id";
starRating: "star_rating";
thingID: "thing_id";
}
ReadonlyhasRevisions: true
Readonlyrelations: readonly [
{
cardinality: "one";
hasRevisions: true;
name: "thing";
sourceKey: "thing_id";
targetTable: "things";
},
{
cardinality: "one";
hasRevisions: false;
name: "creator";
sourceKey: "created_by";
targetKey: "id";
targetTable: "users";
},
{
cardinality: "one";
hasRevisions: true;
name: "socialImage";
sourceKey: "social_image_id";
targetKey: "id";
targetTable: "files";
},
{
cardinality: "many";
hasRevisions: true;
name: "teams";
sourceKey: "id";
targetKey: "id";
targetTable: "teams";
through: {
sourceForeignKey: "review_id";
table: "review_teams";
targetForeignKey: "team_id";
};
},
]
Readonlyschema: {
createdBy: StringType<true>;
createdOn: DateType<true>;
html: ObjectType<string, false>;
id: StringType<false>;
originalLanguage: StringType<false>;
socialImageID: StringType<false>;
starRating: NumberType<true>;
text: ObjectType<string, false>;
thingID: StringType<true>;
title: ObjectType<string, false>;
userCanDelete: VirtualType<unknown, false>;
userCanEdit: VirtualType<unknown, false>;
userIsAuthor: VirtualType<unknown, false>;
}
ReadonlytableName: "reviews"