mizzkey/src/server/api/models/sw-subscription.ts
2018-03-29 14:48:47 +09:00

14 lines
310 B
TypeScript

import * as mongo from 'mongodb';
import db from '../../../db/mongodb';
const SwSubscription = db.get<ISwSubscription>('swSubscriptions');
export default SwSubscription;
export interface ISwSubscription {
_id: mongo.ObjectID;
userId: mongo.ObjectID;
endpoint: string;
auth: string;
publickey: string;
}