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

import jingrow
from jingrow.model.page import Page


class Milestone(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

		milestone_tracker: DF.Link | None
		reference_name: DF.Data
		reference_type: DF.Link
		track_field: DF.Data
		value: DF.Data
	# end: auto-generated types
	pass


def on_pagetype_update():
	jingrow.db.add_index("Milestone", ["reference_type", "reference_name"])
