Commit e7a5c382 authored by M.S.M.Perera's avatar M.S.M.Perera

Commodity value table created

parent 7206d5ba
...@@ -21,6 +21,13 @@ class Gazette(models.Model): ...@@ -21,6 +21,13 @@ class Gazette(models.Model):
GazetteDate = models.CharField(max_length=100) GazetteDate = models.CharField(max_length=100)
PriceAvl = models.CharField( PriceAvl = models.CharField(
max_length=100, default="0") max_length=100, default="0")
#Create Commoditity Value Table
class Commodity(models.Model):
ITEM = models.AutoField(primary_key=True)
GAZETTE = models.CharField(max_length=4, default="N/A")
NAME = models.CharField(max_length=200)
CURRENTPRICE = models.CharField(max_length=50, default="0")
NEWPRICE = models.CharField(max_length=50, default="0")
#post vaconcy table created #post vaconcy table created
class G_POST_V(models.Model): class G_POST_V(models.Model):
...@@ -40,20 +47,12 @@ class Exm(models.Model): ...@@ -40,20 +47,12 @@ class Exm(models.Model):
url = models.CharField(max_length=20000) url = models.CharField(max_length=20000)
cat = models.CharField(max_length=100) cat = models.CharField(max_length=100)
class G_GEN(models.Model): class G_GEN(models.Model):
rowId = models.AutoField(primary_key=True) rowId = models.AutoField(primary_key=True)
GazetteNo = models.ForeignKey(Gazette, on_delete=models.CASCADE) GazetteNo = models.ForeignKey(Gazette, on_delete=models.CASCADE)
#Create Commoditity Value Table
class Commodity(models.Model):
ITEM = models.AutoField(primary_key=True)
GAZETTE = models.CharField(max_length=4, default="N/A")
NAME = models.CharField(max_length=200)
CURRENTPRICE = models.CharField(max_length=50, default="0")
NEWPRICE = models.CharField(max_length=50, default="0")
class Vac(models.Model): class Vac(models.Model):
id = models.AutoField(primary_key=True) id = models.AutoField(primary_key=True)
department = models.CharField(max_length=20000) department = models.CharField(max_length=20000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment