mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
Added functionality for saving and restoring project files
This commit is contained in:
15
euclid/database/models/file_snapshot.py
Normal file
15
euclid/database/models/file_snapshot.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from peewee import *
|
||||
|
||||
from database.models.components.base_models import BaseModel
|
||||
from database.models.development_steps import DevelopmentSteps
|
||||
|
||||
class FileSnapshot(BaseModel):
|
||||
development_step = ForeignKeyField(DevelopmentSteps, backref='files')
|
||||
name = CharField()
|
||||
content = TextField()
|
||||
|
||||
class Meta:
|
||||
db_table = 'file_snapshot'
|
||||
indexes = (
|
||||
(('development_step', 'name'), True),
|
||||
)
|
||||
Reference in New Issue
Block a user