cr-database/mongodb/Motion.ts

33 lines
569 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose';
export default class Motion {
@prop({ required: true })
public issuer: string;
@prop({ required: true })
public subject: string;
@prop({ required: true })
public body: string;
@prop({ required: true })
public at: number;
@prop({ required: true, unique: true })
public oID: string;
@prop()
public results: {
yea: number;
nay: number;
present: number;
absent: number;
};
2022-03-01 13:36:50 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public processed: boolean;
@prop({ required: true, unique: true })
public msg: string;
}