first push
This commit is contained in:
13
backend/models/LabelStudioProject.py
Normal file
13
backend/models/LabelStudioProject.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from database.database import db
|
||||
|
||||
class LabelStudioProject(db.Model):
|
||||
__tablename__ = 'label_studio_project'
|
||||
|
||||
project_id = db.Column(db.Integer, primary_key=True, unique=True)
|
||||
title = db.Column(db.String(255), nullable=False)
|
||||
|
||||
def to_dict(self):
|
||||
return {
|
||||
'project_id': self.project_id,
|
||||
'title': self.title
|
||||
}
|
||||
Reference in New Issue
Block a user