mongodb model prop
parent
fb51d14c51
commit
e784834ea8
|
@ -8,7 +8,7 @@ export default class Merchant {
|
||||||
@prop({ required: true })
|
@prop({ required: true })
|
||||||
public key: string;
|
public key: string;
|
||||||
|
|
||||||
@prop({ required: true })
|
@prop()
|
||||||
public privileged: boolean;
|
public privileged: boolean;
|
||||||
|
|
||||||
@prop({ required: true })
|
@prop({ required: true })
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default class Moderation {
|
||||||
@prop({ required: true })
|
@prop({ required: true })
|
||||||
public moderatorID: string;
|
public moderatorID: string;
|
||||||
|
|
||||||
@prop({ required: true })
|
@prop()
|
||||||
public reason: string;
|
public reason: string;
|
||||||
|
|
||||||
@prop({ required: true })
|
@prop({ required: true })
|
||||||
|
|
|
@ -24,7 +24,7 @@ export default class Motion {
|
||||||
absent: number;
|
absent: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
@prop({ required: true })
|
@prop()
|
||||||
public processed: boolean;
|
public processed: boolean;
|
||||||
|
|
||||||
@prop({ required: true, unique: true })
|
@prop({ required: true, unique: true })
|
||||||
|
|
Loading…
Reference in New Issue