mirror of https://github.com/gmbrax/Pilgrim.git
Compare commits
2 Commits
4d87ae1b90
...
4dda85d8a3
| Author | SHA1 | Date |
|---|---|---|
|
|
4dda85d8a3 | |
|
|
5a28afc540 |
|
|
@ -11,9 +11,9 @@ from pilgrim.database import Base
|
||||||
class Entry(Base):
|
class Entry(Base):
|
||||||
__tablename__ = "entries"
|
__tablename__ = "entries"
|
||||||
id = Column(Integer, primary_key=True)
|
id = Column(Integer, primary_key=True)
|
||||||
title = Column(String)
|
title = Column(String,nullable=False)
|
||||||
text = Column(String)
|
text = Column(String)
|
||||||
date = Column(DateTime)
|
date = Column(DateTime,nullable=False)
|
||||||
photos = relationship(
|
photos = relationship(
|
||||||
"Photo",
|
"Photo",
|
||||||
secondary=photo_entry_association,
|
secondary=photo_entry_association,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue