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

Created Gazette table

parent e77a4cc9
...@@ -10,20 +10,17 @@ class Gazette_mst(models.Model): ...@@ -10,20 +10,17 @@ class Gazette_mst(models.Model):
GTitle = models.CharField(max_length=100) GTitle = models.CharField(max_length=100)
GDesc = models.CharField(max_length=200) GDesc = models.CharField(max_length=200)
class Users(models.Model):
UserID = models.AutoField(primary_key=True)
UserEmpID = models.CharField(max_length=5, default='00000')
UserDepartment = models.CharField(max_length=20)
UserPassword = models.CharField(max_length=20)
class Gazette(models.Model): class Gazette(models.Model):
GazetteNo = models.IntegerField(primary_key=True) GazetteNo = models.IntegerField(primary_key=True)
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")
class Users(models.Model):
UserID = models.AutoField(primary_key=True)
UserEmpID = models.CharField(max_length=5, default='00000')
UserDepartment = models.CharField(max_length=20)
UserPassword = models.CharField(max_length=20)
class G_GEN(models.Model): class G_GEN(models.Model):
......
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