1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/model/mongoose/entities/PhotoModel.ts
2016-05-09 21:43:52 +02:00

15 lines
307 B
TypeScript

import {DatabaseManager} from "../DatabaseManager";
import {Schema} from "mongoose";
export var PhotoModel = DatabaseManager.getInstance().getModel('photo',{
name:String,
width:Number,
height: Number,
directory: {
type: Schema.Types.ObjectId,
ref: 'directory'
},
});