Source code for bw2data.backends.peewee.schema
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
from eight import *
from ...sqlite import PickleField
from peewee import Model, TextField, BlobField
[docs]
class ActivityDataset(Model):
[docs]
data = PickleField() # Canonical, except for other C fields
[docs]
code = TextField() # Canonical
[docs]
database = TextField() # Canonical
[docs]
location = TextField(null=True) # Reset from `data`
[docs]
name = TextField(null=True) # Reset from `data`
[docs]
product = TextField(null=True) # Reset from `data`
[docs]
type = TextField(null=True) # Reset from `data`
[docs]
class ExchangeDataset(Model):
[docs]
data = PickleField() # Canonical, except for other C fields
[docs]
output_code = TextField() # Canonical
[docs]
output_database = TextField() # Canonical
[docs]
type = TextField() # Reset from `data`