@becomes/cms
Version:
Simple CMS for building APIs.
23 lines (22 loc) • 677 B
TypeScript
import { IEntity } from 'purple-cheetah';
import { Types, Schema } from 'mongoose';
import { Prop } from '../../prop/interfaces/prop.interface';
export interface EntryContent {
lng: string;
props: Prop[];
}
export interface IEntry extends IEntity {
templateId: string;
userId: string;
content: EntryContent[];
}
export declare class Entry {
_id: Types.ObjectId;
createdAt: number;
updatedAt: number;
templateId: string;
userId: string;
content: EntryContent[];
constructor(_id: Types.ObjectId, createdAt: number, updatedAt: number, templateId: string, userId: string, content: EntryContent[]);
static get schema(): Schema;
}