@lionrockjs/mod-admin-cms
Version:
The CMS module for LionRockJS
32 lines (28 loc) • 640 B
JavaScript
import { Model } from '@lionrockjs/central';
export default class Page extends Model{
name = null;
slug = null;
weight = 5;
start = null;
end = null;
page_type = null;
current_page_version_id = null;
original = null;
static joinTablePrefix = 'page';
static tableName = 'pages';
static fields = new Map([
["name", "String!"],
["slug", "String!"],
["weight", "Int"],
["start", "Date"],
["end", "Date"],
["page_type", "String"],
["current_page_version_id", "Int"],
["original", "String"]
]);
static belongsTo = new Map([
]);
static hasMany = [
["page_id", "PageTag"]
];
}