Added nsfw flag, that way there won't be issues later on if it was to be implemented

This commit is contained in:
ManInDark 2023-08-09 22:21:36 +02:00
parent 51db820445
commit 64fc777a2b
No known key found for this signature in database
GPG Key ID: 72EC12A5B2D62779

View File

@ -25,6 +25,7 @@ class GalleryImage(Base):
prompt = Column(String)
negative_prompt = Column(String)
time_created = Column(DateTime(timezone=True), server_default=func.now())
nsfw = Column(String, server_default='unknown')
def __repr__(self):
return "<GalleryImage(path='%s', seed='%s', use_stable_diffusion_model='%s', clip_skip='%s', use_vae_model='%s', sampler_name='%s', width='%s', height='%s', num_inference_steps='%s', guidance_scale='%s', lora='%s', use_hypernetwork_model='%s', tiling='%s', use_face_correction='%s', use_upscale='%s', prompt='%s', negative_prompt='%s')>" % (