fix: add Employee model for lane_op
				
					
				
			with abstract common base schema
This commit is contained in:
		
							parent
							
								
									97fb0b28cb
								
							
						
					
					
						commit
						c3b639390d
					
				
					 3 changed files with 71 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
################################################################################
 | 
			
		||||
#
 | 
			
		||||
#  pyCOREPOS -- Python Interface to CORE POS
 | 
			
		||||
#  Copyright © 2018-2023 Lance Edgar
 | 
			
		||||
#  Copyright © 2018-2025 Lance Edgar
 | 
			
		||||
#
 | 
			
		||||
#  This file is part of pyCOREPOS.
 | 
			
		||||
#
 | 
			
		||||
| 
						 | 
				
			
			@ -27,10 +27,19 @@ Data model for CORE POS "lane_op" DB
 | 
			
		|||
import sqlalchemy as sa
 | 
			
		||||
from sqlalchemy import orm
 | 
			
		||||
 | 
			
		||||
from corepos.db.common import op as common
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Base = orm.declarative_base()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Employee(common.EmployeeBase, Base):
 | 
			
		||||
    """
 | 
			
		||||
    Data model for ``employees`` table.
 | 
			
		||||
    """
 | 
			
		||||
    __tablename__ = 'employees'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Department(Base):
 | 
			
		||||
    """
 | 
			
		||||
    Represents a department within the organization.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue