@lionrockjs/mod-admin-cms
Version:
The CMS module for LionRockJS
23 lines (20 loc) • 462 B
JavaScript
import { Model } from '@lionrockjs/central';
export default class Tag extends Model{
tag_type_id = null;
parent_tag = null;
name = null;
original = null;
static joinTablePrefix = 'tag';
static tableName = 'tags';
static fields = new Map([
["name", "String!"],
["original", "String"]
]);
static belongsTo = new Map([
["tag_type_id", "TagType"],
["parent_tag", "Tag"]
]);
static hasMany = [
["parent_tag", "Tag"]
];
}