mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 17:24:54 +00:00
Formatting & improving imports
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import os
|
||||
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import Session, sessionmaker
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
|
||||
from . import Base
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from . import Base
|
||||
from typing import Optional
|
||||
from sqlalchemy import String, Column, JSON, Integer
|
||||
from sqlalchemy.ext.mutable import MutableDict
|
||||
|
||||
from . import Base
|
||||
|
||||
|
||||
class File(Base):
|
||||
__tablename__ = "files"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from . import Base
|
||||
from typing import Optional
|
||||
from sqlalchemy import String, Column, JSON, Integer
|
||||
from sqlalchemy.ext.mutable import MutableDict
|
||||
|
||||
from . import Base
|
||||
|
||||
|
||||
class Setting(Base):
|
||||
__tablename__ = "Settings"
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
from . import Base
|
||||
from typing import Optional
|
||||
from datetime import datetime
|
||||
|
||||
from sqlalchemy import String, Column, JSON, Integer, DateTime
|
||||
from sqlalchemy.ext.mutable import MutableList
|
||||
from datetime import datetime
|
||||
|
||||
from . import Base
|
||||
|
||||
|
||||
class Video(Base):
|
||||
@@ -12,6 +13,6 @@ class Video(Base):
|
||||
title: str = Column(String, nullable=False)
|
||||
description: str = Column(String, nullable=False)
|
||||
script: str = Column(String, nullable=False)
|
||||
timed_script: dict = Column(MutableList.as_mutable(JSON), nullable=False)
|
||||
timed_script: dict = Column(MutableList.as_mutable(JSON), nullable=False) # type: ignore
|
||||
timestamp: datetime = Column(DateTime, nullable=False, default=datetime.now())
|
||||
path: str = Column(String, nullable=False)
|
||||
|
||||
Reference in New Issue
Block a user