rename property module

This commit is contained in:
evilchili 2024-05-12 11:20:52 -07:00
parent 09549bf68c
commit d2bed7c859
4 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@ from .character import *
from .classes import * from .classes import *
from .log import * from .log import *
from .modifiers import * from .modifiers import *
from .property import * from .skill import *

View File

@ -5,7 +5,7 @@ from sqlalchemy.orm import Mapped, mapped_column, relationship
from ttfrog.db.base import BaseObject, SlugMixin from ttfrog.db.base import BaseObject, SlugMixin
from ttfrog.db.schema.classes import CharacterClass, ClassAttribute from ttfrog.db.schema.classes import CharacterClass, ClassAttribute
from ttfrog.db.schema.modifiers import Modifier, ModifierMixin, Stat from ttfrog.db.schema.modifiers import Modifier, ModifierMixin, Stat
from ttfrog.db.schema.property import Skill from ttfrog.db.schema.skill import Skill
__all__ = [ __all__ = [
"Ancestry", "Ancestry",

View File

@ -6,7 +6,7 @@ from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.orm import Mapped, mapped_column, relationship from sqlalchemy.orm import Mapped, mapped_column, relationship
from ttfrog.db.base import BaseObject from ttfrog.db.base import BaseObject
from ttfrog.db.schema.property import Skill from ttfrog.db.schema.skill import Skill
__all__ = [ __all__ = [
"ClassAttributeMap", "ClassAttributeMap",

View File

@ -14,4 +14,4 @@ class Skill(BaseObject):
name: Mapped[str] = mapped_column(String(collation="NOCASE"), nullable=False, unique=True) name: Mapped[str] = mapped_column(String(collation="NOCASE"), nullable=False, unique=True)
base_id: Mapped[int] = mapped_column(ForeignKey("skill.id"), nullable=True, default=None) base_id: Mapped[int] = mapped_column(ForeignKey("skill.id"), nullable=True, default=None)
parent: Mapped["Skill"] = relationship(init=False, remote_side=id, uselist=False, lazy="immediate") parent: Mapped["Skill"] = relationship(init=False, remote_side=id, uselist=False)