# -*- coding:utf-8 -*-
__author__ = 'duwen'

from lightbbs import db
from datetime import datetime


class Favorite(db.Model):
    __tablename__ = 'lb_favorites'
    user_id = db.Column(db.Integer, db.ForeignKey('lb_users.id'), primary_key=True)
    topic_id = db.Column(db.Integer, db.ForeignKey('lb_topics.id'), primary_key=True)
    is_favorite = db.Column(db.Boolean)
    time_stamp = db.Column(db.DateTime, default=datetime.utcnow())
3a60c83e188f723179c306581353d63a22711c46
<mask token>


class Favorite(db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Favorite(db.Model):
    __tablename__ = 'lb_favorites'
    user_id = db.Column(db.Integer, db.ForeignKey('lb_users.id'),
        primary_key=True)
    topic_id = db.Column(db.Integer, db.ForeignKey('lb_topics.id'),
        primary_key=True)
    is_favorite = db.Column(db.Boolean)
    time_stamp = db.Column(db.DateTime, default=datetime.utcnow())

__author__ = 'duwen'
<mask token>


class Favorite(db.Model):
    __tablename__ = 'lb_favorites'
    user_id = db.Column(db.Integer, db.ForeignKey('lb_users.id'),
        primary_key=True)
    topic_id = db.Column(db.Integer, db.ForeignKey('lb_topics.id'),
        primary_key=True)
    is_favorite = db.Column(db.Boolean)
    time_stamp = db.Column(db.DateTime, default=datetime.utcnow())

__author__ = 'duwen'
from lightbbs import db
from datetime import datetime


class Favorite(db.Model):
    __tablename__ = 'lb_favorites'
    user_id = db.Column(db.Integer, db.ForeignKey('lb_users.id'),
        primary_key=True)
    topic_id = db.Column(db.Integer, db.ForeignKey('lb_topics.id'),
        primary_key=True)
    is_favorite = db.Column(db.Boolean)
    time_stamp = db.Column(db.DateTime, default=datetime.utcnow())

# -*- coding:utf-8 -*-
__author__ = 'duwen'

from lightbbs import db
from datetime import datetime


class Favorite(db.Model):
    __tablename__ = 'lb_favorites'
    user_id = db.Column(db.Integer, db.ForeignKey('lb_users.id'), primary_key=True)
    topic_id = db.Column(db.Integer, db.ForeignKey('lb_topics.id'), primary_key=True)
    is_favorite = db.Column(db.Boolean)
    time_stamp = db.Column(db.DateTime, default=datetime.utcnow())