from ns_portal.database.meta import (
    Main_Db_Base
)
from sqlalchemy import (
    Boolean,
    Column,
    DateTime,
    Integer,
    String,
    func
)


class TUsers(Main_Db_Base):
    __tablename__ = 'TUsers'

    TUse_PK_ID = Column(
        Integer,
        primary_key=True
    )
    TUse_LastName = Column(
        String(100),
        nullable=True
    )
    TUse_FirstName = Column(
        String(100),
        nullable=True
    )
    TUse_CreationDate = Column(
        DateTime,
        nullable=True
    )
    TUse_Login = Column(
        String(255),
        nullable=False
    )
    TUse_Password = Column(
        String(50),
        nullable=True
    )
    TUse_Language = Column(
        String(5),
        nullable=True
    )
    TUse_ModificationDate = Column(
        DateTime,
        nullable=True,
        server_default=func.now()
    )
    TUse_HasAccess = Column(
        Boolean,
        nullable=False
    )
    TUse_Photo = Column(
        String(255),
        nullable=False
    )
    TUse_PK_ID_OLD = Column(
        Integer,
        nullable=False,
        server_default=func.now()
    )

@@ -150,16 +150,71 @@
  func%0A)%0A
+from marshmallow_sqlalchemy import (%0A    ModelSchema%0A)%0A
 %0A%0Aclass 
@@ -1154,28 +1154,103 @@
 er_default=func.now()%0A    )%0A
+%0A%0Aclass TUsersSchema(ModelSchema):%0A%0A    class Meta:%0A        model = TUsers%0A

add marshmallow schema for serialize