Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor models #11

Merged
merged 14 commits into from
Aug 27, 2022
Merged

Refactor models #11

merged 14 commits into from
Aug 27, 2022

Conversation

Thaza-Kun
Copy link
Collaborator

Tambah model Base:

  • BaseModel (Semua jadual dan Base mewarisi BaseModel)
  • BaseRelationshipTable (Untuk padankan objek secara banyak ke banyak. Lazimnya menggunakan corak nama ObjekAXObjekB.)
  • BaseAttachmentTable (Ada kaedah .__attach__(cls, other).)
  • BaseStrictTable (Untuk senarai yang tidak mahu sewenang-wenangnya ditambah seperti GolonganKata dan Keizinan)

Asingkan model-model berlainan peranan:

  • ./model/auth untuk model-model berkaitan pengguna
  • ./model/core untuk model-model teras berkaitan data

@Thaza-Kun Thaza-Kun merged commit d7459c7 into master Aug 27, 2022
@Thaza-Kun Thaza-Kun deleted the expand-model branch April 15, 2023 04:34
Thaza-Kun added a commit that referenced this pull request Nov 22, 2024
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.

1 participant