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.
tailchat/server/plugins/com.msgbyte.github/models/subscribe.ts

36 lines
653 B
TypeScript

import {
getModelForClass,
prop,
DocumentType,
modelOptions,
} from '@typegoose/typegoose';
import { Base, TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
import type { Types } from 'mongoose';
@modelOptions({
options: {
customName: 'p_githubSubscribe',
},
})
export class Subscribe extends TimeStamps implements Base {
_id: Types.ObjectId;
id: string;
@prop()
groupId: string;
@prop()
textPanelId: string;
@prop()
repoName: string;
}
export type SubscribeDocument = DocumentType<Subscribe>;
const model = getModelForClass(Subscribe);
export type SubscribeModel = typeof model;
export default model;