mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
441 B
TypeScript
21 lines
441 B
TypeScript
2 years ago
|
import { db } from 'tailchat-server-sdk';
|
||
|
const { getModelForClass, prop, modelOptions, TimeStamps } = db;
|
||
|
|
||
|
@modelOptions({
|
||
|
options: {
|
||
|
customName: 'p_livekit',
|
||
|
},
|
||
|
})
|
||
|
export class Livekit extends TimeStamps implements db.Base {
|
||
|
_id: db.Types.ObjectId;
|
||
|
id: string;
|
||
|
}
|
||
|
|
||
|
export type LivekitDocument = db.DocumentType<Livekit>;
|
||
|
|
||
|
const model = getModelForClass(Livekit);
|
||
|
|
||
|
export type LivekitModel = typeof model;
|
||
|
|
||
|
export default model;
|