No cake for you postgres
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ff8dd87bc9
commit
c73d5b91ba
@ -3,11 +3,8 @@ from .config import db
|
|||||||
|
|
||||||
class AnimeFolder(db.Model):
|
class AnimeFolder(db.Model):
|
||||||
id = db.Column(db.Integer, primary_key=True)
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
name = db.Column(db.String(
|
name = db.Column(db.String(length=100), unique=True, nullable=False)
|
||||||
length=100,
|
path = db.Column(db.String(length=100))
|
||||||
collation='utf8mb4_general_ci'
|
|
||||||
), unique=True, nullable=False)
|
|
||||||
path = db.Column(db.String(length=100, collation='utf8mb4_general_ci'))
|
|
||||||
titles = db.relationship(
|
titles = db.relationship(
|
||||||
"AnimeTitle",
|
"AnimeTitle",
|
||||||
backref="folder",
|
backref="folder",
|
||||||
@ -17,13 +14,8 @@ class AnimeFolder(db.Model):
|
|||||||
|
|
||||||
class AnimeTitle(db.Model):
|
class AnimeTitle(db.Model):
|
||||||
id = db.Column(db.Integer, primary_key=True)
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
name = db.Column(db.String(
|
name = db.Column(db.String(length=100), unique=True, nullable=False)
|
||||||
length=100,
|
keyword = db.Column(db.Text(), nullable=False)
|
||||||
collation='utf8mb4_general_ci'
|
|
||||||
), unique=True, nullable=False)
|
|
||||||
keyword = db.Column(db.Text(
|
|
||||||
collation='utf8mb4_general_ci'
|
|
||||||
), nullable=False)
|
|
||||||
folder_id = db.Column(db.Integer, db.ForeignKey('anime_folder.id'))
|
folder_id = db.Column(db.Integer, db.ForeignKey('anime_folder.id'))
|
||||||
links = db.relationship(
|
links = db.relationship(
|
||||||
'AnimeLink',
|
'AnimeLink',
|
||||||
@ -34,9 +26,9 @@ class AnimeTitle(db.Model):
|
|||||||
|
|
||||||
class AnimeLink(db.Model):
|
class AnimeLink(db.Model):
|
||||||
id = db.Column(db.Integer, primary_key=True)
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
link = db.Column(db.Text(collation='utf8mb4_general_ci'), nullable=False)
|
link = db.Column(db.Text(), nullable=False)
|
||||||
season = db.Column(db.Text(collation='utf8mb4_general_ci'), nullable=False)
|
season = db.Column(db.Text(), nullable=False)
|
||||||
comment = db.Column(db.Text(collation='utf8mb4_general_ci'))
|
comment = db.Column(db.Text())
|
||||||
vf = db.Column(db.Boolean, nullable=False)
|
vf = db.Column(db.Boolean, nullable=False)
|
||||||
title_id = db.Column(db.Integer, db.ForeignKey('anime_title.id'))
|
title_id = db.Column(db.Integer, db.ForeignKey('anime_title.id'))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user