from peewee import SqliteDatabase
from peewee import Model
from peewee import DecimalField, DateField, CharField

db = SqliteDatabase("expense.db")


class BaseModel(Model):
    class Meta:
        database = db


class Expense(BaseModel):
    amount = DecimalField()
    purchase_date = DateField()
    merchant = CharField()


def init_database():
    db.init("expense.db")
    Expense.create_table()

b36bf3fc1a18421a8254555b8343dfc207b9901e
<mask token>


class BaseModel(Model):


    class Meta:
        database = db


class Expense(BaseModel):
    amount = DecimalField()
    purchase_date = DateField()
    merchant = CharField()


<mask token>

<mask token>


class BaseModel(Model):


    class Meta:
        database = db


class Expense(BaseModel):
    amount = DecimalField()
    purchase_date = DateField()
    merchant = CharField()


def init_database():
    db.init('expense.db')
    Expense.create_table()

<mask token>
db = SqliteDatabase('expense.db')


class BaseModel(Model):


    class Meta:
        database = db


class Expense(BaseModel):
    amount = DecimalField()
    purchase_date = DateField()
    merchant = CharField()


def init_database():
    db.init('expense.db')
    Expense.create_table()

from peewee import SqliteDatabase
from peewee import Model
from peewee import DecimalField, DateField, CharField
db = SqliteDatabase('expense.db')


class BaseModel(Model):


    class Meta:
        database = db


class Expense(BaseModel):
    amount = DecimalField()
    purchase_date = DateField()
    merchant = CharField()


def init_database():
    db.init('expense.db')
    Expense.create_table()

from peewee import SqliteDatabase
from peewee import Model
from peewee import DecimalField, DateField, CharField

db = SqliteDatabase("expense.db")


class BaseModel(Model):
    class Meta:
        database = db


class Expense(BaseModel):
    amount = DecimalField()
    purchase_date = DateField()
    merchant = CharField()


def init_database():
    db.init("expense.db")
    Expense.create_table()
