Verified Commit 5373d3c4 authored by Egor Dubenetskiy's avatar Egor Dubenetskiy 🚴🏼

Сделать координаты опциональными

parent 4130cde4
......@@ -14,8 +14,8 @@ class Post(db.Entity):
source = orm.Optional(str)
photo = orm.Optional(str)
video = orm.Optional(str)
latitude = orm.Required(float)
longitude = orm.Required(float)
latitude = orm.Optional(float)
longitude = orm.Optional(float)
author = orm.Required(int)
state = orm.Required(str, sql_default='pending')
timestamp = orm.Required(datetime, sql_default='CURRENT_TIMESTAMP')
\ No newline at end of file
timestamp = orm.Required(datetime, sql_default='CURRENT_TIMESTAMP')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment