rattail.db.model.stores

Data Models for Stores

class rattail.db.model.stores.Store(**kwargs)[source]

Represents a store (physical or otherwise) within the organization.

archived

If set, this should indicate the record is “archived” and is no longer in use per se.

database_key

Supposedly unique “config key” for the store. This key is used e.g. to define the database connection for the store.

id

Supposedly unique ID string for the store.

name

Common name for the store.

uuid

UUID primary key for the table.

class rattail.db.model.stores.StoreEmailAddress(**kwargs)[source]

Represents an email address associated with a store.

invalid

Flag indicating whether the email address is known to be invalid. Defaults to NULL, meaning the validity is “not known”.

uuid

UUID primary key for the table.

class rattail.db.model.stores.StorePhoneNumber(**kwargs)[source]

Represents a phone (or fax) number associated with a store.

uuid

UUID primary key for the table.