summaryrefslogtreecommitdiff
path: root/apps/cultivation/models.py
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-11-27 23:56:22 +0100
committerfschildt <florian.schildt@protonmail.com>2025-11-27 23:56:22 +0100
commit31894376c10fc08f9f7a054dcde3b36c3b09f25b (patch)
treea52d3af6f6a6c6174e23937cb7d91deceed2aecb /apps/cultivation/models.py
parent3ad55935b63d8860467ec5c67328747166263fd5 (diff)
cultivation: add mind stuffHEADmaster
Diffstat (limited to 'apps/cultivation/models.py')
-rw-r--r--apps/cultivation/models.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/apps/cultivation/models.py b/apps/cultivation/models.py
index d28cc79..0fc9705 100644
--- a/apps/cultivation/models.py
+++ b/apps/cultivation/models.py
@@ -2,26 +2,15 @@ from django.db import models
from django.contrib.auth.models import User
-
-class MindSubject(models.Model):
- name = models.CharField(max_length=32, unique=True)
-
- class Meta:
- db_table = "mind_subjects"
-
- def __str__(self):
- return f"{self.name}"
-
-
class MindMaterial(models.Model):
- subject = models.ForeignKey(MindSubject, on_delete=models.CASCADE)
- material = models.CharField(max_length=32, unique=True)
+ user = models.ForeignKey(User, on_delete=models.CASCADE)
+ name = models.CharField(max_length=64, unique=True)
class Meta:
db_table = "mind_materials"
def __str__(self):
- return f"{self.subject},{self.material}"
+ return f"{self.name}"
class MindEvent(models.Model):