forked from engineering/cloudservices
Definitions inside methods
parent
d534ea163d
commit
52351fd8e4
|
@ -22,7 +22,7 @@ export interface AccountInterface extends Document {
|
||||||
authTag: Buffer
|
authTag: Buffer
|
||||||
}
|
}
|
||||||
|
|
||||||
const Account: Schema = new Schema({
|
const Account = new Schema<AccountInterface>({
|
||||||
username: String,
|
username: String,
|
||||||
userID: String,
|
userID: String,
|
||||||
homepath: String,
|
homepath: String,
|
||||||
|
|
|
@ -13,7 +13,7 @@ export interface DomainInterface extends Document {
|
||||||
enabled: true
|
enabled: true
|
||||||
}
|
}
|
||||||
|
|
||||||
const Domain: Schema = new Schema({
|
const Domain = new Schema<DomainInterface>({
|
||||||
account: Object,
|
account: Object,
|
||||||
domain: String,
|
domain: String,
|
||||||
port: Number,
|
port: Number,
|
||||||
|
|
|
@ -21,7 +21,7 @@ export interface ModerationInterface extends Document {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const Moderation: Schema = new Schema({
|
const Moderation = new Schema<ModerationInterface>({
|
||||||
username: String,
|
username: String,
|
||||||
userID: String,
|
userID: String,
|
||||||
logID: String,
|
logID: String,
|
||||||
|
|
|
@ -12,7 +12,7 @@ export interface TierInterface extends Tiers, Document {
|
||||||
id: number;
|
id: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Tier: Schema = new Schema({
|
const Tier = new Schema<TierInterface>({
|
||||||
id: Number,
|
id: Number,
|
||||||
resourceLimits: {
|
resourceLimits: {
|
||||||
ram: Number,
|
ram: Number,
|
||||||
|
|
Loading…
Reference in New Issue