Changeset - e49a849ba48e
[Not reviewed]
0 1 0
Lance Edgar - 5 years ago 2019-08-14 21:02:35
ledgar@techsupport.coop
Cleanup attribute names for Employee model
1 file changed with 11 insertions and 11 deletions:
0 comments (0 inline, 0 general) First comment
corepos/db/model.py
Show inline comments
 
@@ -327,28 +327,28 @@ class Employee(Base):
 
    """
 
    __tablename__ = 'employees'
 

	
 
    emp_no = sa.Column(sa.SmallInteger(), primary_key=True, autoincrement=False, nullable=False)
 
    number = sa.Column('emp_no', sa.SmallInteger(), primary_key=True, autoincrement=False, nullable=False)
 

	
 
    CashierPassword = sa.Column(sa.String(length=50), nullable=True)
 
    cashier_password = sa.Column('CashierPassword', sa.String(length=50), nullable=True)
 

	
 
    AdminPassword = sa.Column(sa.String(length=50), nullable=True)
 
    admin_password = sa.Column('AdminPassword', sa.String(length=50), nullable=True)
 

	
 
    FirstName = sa.Column(sa.String(length=255), nullable=True)
 
    first_name = sa.Column('FirstName', sa.String(length=255), nullable=True)
 

	
 
    LastName = sa.Column(sa.String(length=255), nullable=True)
 
    last_name = sa.Column('LastName', sa.String(length=255), nullable=True)
 

	
 
    JobTitle = sa.Column(sa.String(length=255), nullable=True)
 
    job_title = sa.Column('JobTitle', sa.String(length=255), nullable=True)
 

	
 
    EmpActive = sa.Column(sa.Boolean(), nullable=True)
 
    active = sa.Column('EmpActive', sa.Boolean(), nullable=True)
 

	
 
    frontendsecurity = sa.Column(sa.SmallInteger(), nullable=True)
 
    frontend_security = sa.Column('frontendsecurity', sa.SmallInteger(), nullable=True)
 

	
 
    backendsecurity = sa.Column(sa.SmallInteger(), nullable=True)
 
    backend_security = sa.Column('backendsecurity', sa.SmallInteger(), nullable=True)
 

	
 
    birthdate = sa.Column(sa.DateTime(), nullable=True)
 
    birth_date = sa.Column('birthdate', sa.DateTime(), nullable=True)
 

	
 
    def __str__(self):
 
        return ' '.join([self.FirstName or '', self.LastName or '']).strip()
 
        return ' '.join([self.first_name or '', self.last_name or '']).strip()
 

	
 

	
 
@six.python_2_unicode_compatible
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now