1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

16 lines
399 B
TypeScript
Raw Normal View History

2016-05-04 18:34:54 +02:00
import {DatabaseManager} from "../DatabaseManager";
import {Schema} from "mongoose";
2016-05-09 17:04:56 +02:00
export var DirectoryModel = DatabaseManager.getInstance().getModel('directory', {
name: String,
path: String,
lastUpdate: Date,
2016-05-04 18:34:54 +02:00
directories: [{
type: Schema.Types.ObjectId,
ref: 'directory'
}],
photos: [{
type: Schema.Types.ObjectId,
ref: 'photo'
}]
});