Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by ega ( 7 years ago )
from pynamodb.attributes import *
from pynamodb.models import Model
import bizmotto.database.lib.utils as utils
class UserModel(Model):
"""
A DynamoDB User
"""
class Meta:
table_name = 'user_biz'
region = 'us-east-1'
user_id = UnicodeAttribute(hash_key=True)
verified = BooleanAttribute(default=False)
entity_id = UnicodeAttribute(hash_key=True),
entity_type = UnicodeAttribute(),
invoice_product = BooleanAttribute(default=False),
appointment_product = BooleanAttribute(default=False),
virtual_assistant_product = BooleanAttribute(default=False),
pos_product = BooleanAttribute(default=False),
website_product = BooleanAttribute(default=False),
marketing_product =BooleanAttribute(default=False),
no_products = BooleanAttribute(default=False)
business_name = UnicodeAttribute(null=True),
business_category = UnicodeAttribute(null=True),
first_name = UnicodeAttribute(null=True),
last_name = UnicodeAttribute(null=True),
home_address = UnicodeAttribute(null=True),
apt_unit = UnicodeAttribute(null=True),
zip_code = UnicodeAttribute(null=True),
country = UnicodeAttribute(null=True),
city = UnicodeAttribute(null=True),
state = UnicodeAttribute(null=True),
date_birth = UnicodeAttribute(null=True),
cell_phone = UnicodeAttribute(null=True),
last_ssn_itin = UnicodeAttribute(null=True),
phone_number = UnicodeAttribute(null=True)
Revise this Paste