UNPKG

@lionrockjs/mod-admin-cms

Version:
23 lines (20 loc) 462 B
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"] ]; }