gay
This commit is contained in:
parent
3e40af72c6
commit
5e38f95b91
BIN
src/db.sqlite3
BIN
src/db.sqlite3
Binary file not shown.
@ -3,18 +3,20 @@ from django.db import models
|
|||||||
# products/models.py
|
# products/models.py
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
class Scoreboard(models.Model):
|
class Pegs(models.Model):
|
||||||
class Status(models.IntegerChoices):
|
|
||||||
ACTIVE = 1, "Active"
|
|
||||||
INACTIVE = 2, "Inactive"
|
|
||||||
ARCHIVED = 3, "Archived"
|
|
||||||
|
|
||||||
name = models.CharField(max_length=255)
|
|
||||||
category = models.CharField(max_length=255)
|
|
||||||
price = models.DecimalField(max_digits=10, decimal_places=2)
|
|
||||||
cost = models.DecimalField(max_digits=10, decimal_places=2)
|
|
||||||
status = models.PositiveSmallIntegerField(choices=Status.choices)
|
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
return self.name
|
|
||||||
|
|
||||||
|
#class Scoreboard(models.Model):
|
||||||
|
# class Status(models.IntegerChoices):
|
||||||
|
# ACTIVE = 1, "Active"
|
||||||
|
# INACTIVE = 2, "Inactive"
|
||||||
|
# ARCHIVED = 3, "Archived"
|
||||||
|
#
|
||||||
|
# name = models.CharField(max_length=255)
|
||||||
|
# category = models.CharField(max_length=255)
|
||||||
|
# price = models.DecimalField(max_digits=10, decimal_places=2)
|
||||||
|
# cost = models.DecimalField(max_digits=10, decimal_places=2)
|
||||||
|
# status = models.PositiveSmallIntegerField(choices=Status.choices)
|
||||||
|
#
|
||||||
|
# def __str__(self):
|
||||||
|
# return self.name
|
Loading…
x
Reference in New Issue
Block a user