feat: add model for MemberContactPreference (op.memContactPrefs)
				
					
				
			This commit is contained in:
		
							parent
							
								
									27a46ed18f
								
							
						
					
					
						commit
						b5b29cdcf1
					
				
					 1 changed files with 14 additions and 1 deletions
				
			
		|  | @ -1378,7 +1378,7 @@ class MemberDate(Base): | |||
| 
 | ||||
| class MemberContact(Base): | ||||
|     """ | ||||
|     Contact preferences for members | ||||
|     Member contacts | ||||
|     """ | ||||
|     __tablename__ = 'memContact' | ||||
| 
 | ||||
|  | @ -1405,6 +1405,19 @@ class MemberContact(Base): | |||
|         return str(self.preference) | ||||
| 
 | ||||
| 
 | ||||
| class MemberContactPreference(Base): | ||||
|     """ | ||||
|     Member contact preferences | ||||
|     """ | ||||
|     __tablename__ = 'memContactPrefs' | ||||
| 
 | ||||
|     id = sa.Column('pref_id', sa.Integer(), primary_key=True, autoincrement=False, nullable=False) | ||||
|     description = sa.Column('pref_description', sa.String(length=50), nullable=True) | ||||
| 
 | ||||
|     def __str__(self): | ||||
|         return self.description or "" | ||||
| 
 | ||||
| 
 | ||||
| class MemberBarcode(Base): | ||||
|     """ | ||||
|     Additional barcode for a member. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar