mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Very basic start to assets
no real work done yet, just a basic structure and a start to models
This commit is contained in:
13
assets/models.py
Normal file
13
assets/models.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.db import models
|
||||
import reversion
|
||||
|
||||
# Create your models here.
|
||||
class Suppliers(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
address = models.TextField()
|
||||
phone = models.CharField(max_length=13, null=True, blank=True)
|
||||
company_number = models.IntegerField()
|
||||
|
||||
class AbstractAsset(object):
|
||||
purchase_cost = models.DecimalField(max_digits=10, decimal_places=2)
|
||||
purchase_date = models.DateField(blank=True, null=True)
|
||||
Reference in New Issue
Block a user