这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Aug 26, 2024

This PR implements a class for DB models to typify and unify model objects:

  • encapsulate all used DB data types into static properties
  • encapsulate all used DB service field names into static properties
  • add immutability of DB model instances for security reasons
  • add access methods for model fields, triggers, constraints, and indexes as an easier way to get appropriate fields
  • add method to clone the model as a way to have a mutable object without a need to change the main one
  • add a simple validation of model field types on the stage of making an instance

The PR is part of the refactoring and doesn't have the changes of the main logic and functionality

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants