Constructors

Properties

Membership: Model<Flatten<Merge<Required<{
    from: {
        required: true;
        type: NumberConstructor;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "${userId}";
    };
    roomId: {
        required: true;
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "membership:${roomId}:${from}";
    };
    status: {
        enum: readonly [None, Joined, PendingInvite, PendingApproval, Revoked];
        required: true;
        type: StringConstructor;
    };
    until: {
        type: NumberConstructor;
    };
    userId: {
        required: true;
        type: StringConstructor;
    };
}>, OptionalOrUndefined<{
    from: {
        required: true;
        type: NumberConstructor;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "${userId}";
    };
    roomId: {
        required: true;
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "membership:${roomId}:${from}";
    };
    status: {
        enum: readonly [None, Joined, PendingInvite, PendingApproval, Revoked];
        required: true;
        type: StringConstructor;
    };
    until: {
        type: NumberConstructor;
    };
    userId: {
        required: true;
        type: StringConstructor;
    };
}>>>>
Message: Model<Flatten<Merge<Required<{
    authorId: {
        required: true;
        type: StringConstructor;
    };
    content: {
        required: true;
        type: StringConstructor;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "${roomId}";
    };
    recipientId: {
        type: StringConstructor;
    };
    roomId: {
        required: true;
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "message:${uuid}";
    };
    time: {
        required: true;
        type: NumberConstructor;
    };
    updatedEntities: {
        type: ArrayConstructor;
    };
    uuid: {
        generate: "ulid";
        required: true;
        type: StringConstructor;
    };
}>, OptionalOrUndefined<{
    authorId: {
        required: true;
        type: StringConstructor;
    };
    content: {
        required: true;
        type: StringConstructor;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "${roomId}";
    };
    recipientId: {
        type: StringConstructor;
    };
    roomId: {
        required: true;
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "message:${uuid}";
    };
    time: {
        required: true;
        type: NumberConstructor;
    };
    updatedEntities: {
        type: ArrayConstructor;
    };
    uuid: {
        generate: "ulid";
        required: true;
        type: StringConstructor;
    };
}>>>>
Room: Model<Flatten<Merge<Required<{
    contentPolicy: {
        enum: readonly [Public, Private];
        required: true;
        type: StringConstructor;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "room:${uuid}";
    };
    joinPolicy: {
        enum: readonly [Anyone, Request, Invite];
        required: true;
        type: StringConstructor;
    };
    name: {
        required: true;
        type: StringConstructor;
    };
    ownerId: {
        required: true;
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "room";
    };
    uuid: {
        generate: "ulid";
        required: true;
        type: StringConstructor;
    };
}>, OptionalOrUndefined<{
    contentPolicy: {
        enum: readonly [Public, Private];
        required: true;
        type: StringConstructor;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "room:${uuid}";
    };
    joinPolicy: {
        enum: readonly [Anyone, Request, Invite];
        required: true;
        type: StringConstructor;
    };
    name: {
        required: true;
        type: StringConstructor;
    };
    ownerId: {
        required: true;
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "room";
    };
    uuid: {
        generate: "ulid";
        required: true;
        type: StringConstructor;
    };
}>>>>
tableName: string
User: Model<Flatten<Merge<Required<{
    email: {
        required: true;
        type: StringConstructor;
        unique: true;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "user:${sub}";
    };
    name: {
        required: true;
        type: StringConstructor;
    };
    picture: {
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "user";
    };
    sub: {
        required: true;
        type: StringConstructor;
    };
}>, OptionalOrUndefined<{
    email: {
        required: true;
        type: StringConstructor;
        unique: true;
    };
    Id: {
        required: true;
        type: StringConstructor;
        value: "user:${sub}";
    };
    name: {
        required: true;
        type: StringConstructor;
    };
    picture: {
        type: StringConstructor;
    };
    Sort: {
        required: true;
        type: StringConstructor;
        value: "user";
    };
    sub: {
        required: true;
        type: StringConstructor;
    };
}>>>>

Methods