init commit
init commit
This commit is contained in:
12
equipment/models.py
Normal file
12
equipment/models.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user