changed files table to file to be consistent with other tables in the db

This commit is contained in:
2021-01-14 21:58:20 +11:00
parent 348c9132f2
commit a93f9e1da8
3 changed files with 11 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ from sqlalchemy import Sequence
from sqlalchemy.exc import SQLAlchemyError
from status import st, Status
from files import Files
from files import File
################################################################################
# Class describing Person in the database, and via sqlalchemy, connected to the DB as well
@@ -22,7 +22,7 @@ class Person(db.Model):
class File_Person_Link(db.Model):
__tablename__ = "file_person_link"
file_id = db.Column(db.Integer, db.ForeignKey('files.id'), unique=True, nullable=False, primary_key=True)
file_id = db.Column(db.Integer, db.ForeignKey('file.id'), unique=True, nullable=False, primary_key=True)
person_id = db.Column(db.Integer, db.ForeignKey('person.id'), unique=True, nullable=False, primary_key=True)
def __repr__(self):