Module za_warudo.models.projection_room
Expand source code
from peewee import SqliteDatabase, Model, CharField, IntegerField, Check
db = SqliteDatabase("db/app.db")
class ProjectionRoom(Model):
    '''
    The place where the film is being screened
    '''
    location = CharField()
    total_seats = IntegerField(default=0, constraints=[Check('total_seats >= 0')])
    class Meta:
        database = db
        table_name = "projection_rooms"Classes
- class ProjectionRoom (*args, **kwargs)
- 
The place where the film is being screened Expand source codeclass ProjectionRoom(Model): ''' The place where the film is being screened ''' location = CharField() total_seats = IntegerField(default=0, constraints=[Check('total_seats >= 0')]) class Meta: database = db table_name = "projection_rooms"Ancestors- peewee.Model
- peewee._metaclass_helper_
- peewee.Node
 Class variables- var DoesNotExist
- 
Common base class for all non-exit exceptions. 
- var id
- var location
- var total_seats