Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

including custom field in schema with nested Schema #64

Open
saksham219 opened this issue Jul 2, 2017 · 0 comments
Open

including custom field in schema with nested Schema #64

saksham219 opened this issue Jul 2, 2017 · 0 comments

Comments

@saksham219
Copy link

saksham219 commented Jul 2, 2017

I have a model with data of some facebook posts:

class Post(db.Model): id = db.Column(db.Integer, primary_key = True) post_id = db.Column(db.String(40), unique = True) post_type = db.Column(db.String(10)) post_created_time = db.Column(db.String(30)) post_content = db.Column(db.Text) post_link = db.Column(db.String(700)) post_likes = db.Column(db.Integer) post_comments = db.Column(db.Integer) post_shares = db.Column(db.Integer) post_photos = db.Column(db.ARRAY(db.String(500))) date_saved = db.Column(db.DateTime, default= datetime.utcnow()) date_updated = db.Column(db.DateTime) page_name = db.Column(db.String(20))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant