36 lines
657 B
TypeScript
36 lines
657 B
TypeScript
import { prop } from '@typegoose/typegoose';
|
|
|
|
export default class Proclamation {
|
|
@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;
|
|
};
|
|
|
|
@prop({ required: true, unique: true })
|
|
public msg: string;
|
|
|
|
@prop({ required: true })
|
|
public processed: boolean;
|
|
|
|
@prop({ required: true })
|
|
public votedDirectors: string[];
|
|
}
|