# Copyright (c) 2019, JINGROW
# License: MIT. See LICENSE

import jingrow
from jingrow.model.page import Page


class TagLink(Page):
	# begin: auto-generated types
	# This code is auto-generated. Do not modify anything in this block.

	from typing import TYPE_CHECKING

	if TYPE_CHECKING:
		from jingrow.types import DF

		document_name: DF.DynamicLink | None
		document_type: DF.Link | None
		tag: DF.Link | None
		title: DF.Data | None

	# end: auto-generated types
	pass


def on_pagetype_update():
	jingrow.db.add_index("Tag Link", ["document_type", "document_name"])
