Commit 7f7e9c56 authored by M.S.M.Perera's avatar M.S.M.Perera

Create user Table

parent a633361b
...@@ -4,6 +4,12 @@ from django.db.models.fields import AutoField ...@@ -4,6 +4,12 @@ from django.db.models.fields import AutoField
# Create your models here. # Create your models here.
#User Table #User Table
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_mst(models.Model): class Gazette_mst(models.Model):
GID = models.AutoField(primary_key=True) GID = models.AutoField(primary_key=True)
GType = models.CharField(max_length=10) GType = models.CharField(max_length=10)
...@@ -16,12 +22,6 @@ class Gazette(models.Model): ...@@ -16,12 +22,6 @@ class Gazette(models.Model):
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):
rowId = models.AutoField(primary_key=True) rowId = models.AutoField(primary_key=True)
......
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