# coding=utf-8

import datetime

from peewee import TextField, DateTimeField, ForeignKeyField, CharField

from .base import ModelBase
from .topic import Topic


class Image(ModelBase):

    class Meta:
        pass

    topic = ForeignKeyField(Topic, related_name="images")
    origin_url = CharField(default="") 
    file_name = CharField(default="")
    file_class = CharField(default="")
    content = TextField(default="")
    caught_at = DateTimeField(default=datetime.datetime.now)



3c7382793ec1aecc1ceaf6d75121bc267d46adb7
<mask token>

<mask token>


class Image(ModelBase):


    class Meta:
        pass
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Image(ModelBase):


    class Meta:
        pass
    topic = ForeignKeyField(Topic, related_name='images')
    origin_url = CharField(default='')
    file_name = CharField(default='')
    file_class = CharField(default='')
    content = TextField(default='')
    caught_at = DateTimeField(default=datetime.datetime.now)

import datetime
from peewee import TextField, DateTimeField, ForeignKeyField, CharField
from .base import ModelBase
from .topic import Topic


class Image(ModelBase):


    class Meta:
        pass
    topic = ForeignKeyField(Topic, related_name='images')
    origin_url = CharField(default='')
    file_name = CharField(default='')
    file_class = CharField(default='')
    content = TextField(default='')
    caught_at = DateTimeField(default=datetime.datetime.now)

# coding=utf-8

import datetime

from peewee import TextField, DateTimeField, ForeignKeyField, CharField

from .base import ModelBase
from .topic import Topic


class Image(ModelBase):

    class Meta:
        pass

    topic = ForeignKeyField(Topic, related_name="images")
    origin_url = CharField(default="") 
    file_name = CharField(default="")
    file_class = CharField(default="")
    content = TextField(default="")
    caught_at = DateTimeField(default=datetime.datetime.now)


