Files
WerkoutAPI/equipment/models.py
Trey t a2fd663255 init commit
init commit
2023-06-11 20:09:22 -05:00

12 lines
457 B
Python

from django.db import models
# Create your models here.
class Equipment(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
is_weight = models.BooleanField(default=False)
category = models.CharField(null=True, blank=True, max_length=64)
name = models.CharField(null=True, blank=True, max_length=64)
def __str__(self):
return self.category + " : " + self.name