mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-28 15:17:53 +01:00
18 lines
483 B
Python
18 lines
483 B
Python
from peewee import *
|
|
|
|
from database.models.components.base_models import BaseModel
|
|
from database.models.development_steps import DevelopmentSteps
|
|
from database.models.app import App
|
|
|
|
class File(BaseModel):
|
|
id = AutoField()
|
|
app = ForeignKeyField(App, on_delete='CASCADE')
|
|
name = CharField()
|
|
path = CharField()
|
|
full_path = CharField()
|
|
description = TextField(null=True)
|
|
|
|
class Meta:
|
|
indexes = (
|
|
(('app', 'name', 'path'), True),
|
|
) |