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.
27 lines
533 B
TypeScript
27 lines
533 B
TypeScript
import { db } from 'tailchat-server-sdk';
|
|
const { getModelForClass, prop, modelOptions, TimeStamps } = db;
|
|
|
|
@modelOptions({
|
|
options: {
|
|
customName: 'p_excalidraw',
|
|
},
|
|
})
|
|
export class Excalidraw extends TimeStamps implements db.Base {
|
|
_id: db.Types.ObjectId;
|
|
id: string;
|
|
|
|
@prop()
|
|
userId: string;
|
|
|
|
@prop()
|
|
dataState: Record<string, any>;
|
|
}
|
|
|
|
export type ExcalidrawDocument = db.DocumentType<Excalidraw>;
|
|
|
|
const model = getModelForClass(Excalidraw);
|
|
|
|
export type ExcalidrawModel = typeof model;
|
|
|
|
export default model;
|