Move Projects and Environments into their own files

This commit is contained in:
richard-dds
2018-08-22 11:21:29 -04:00
parent 1b7b024bd7
commit 50e2666c3c
5 changed files with 30 additions and 22 deletions

13
atst/domain/projects.py Normal file
View File

@@ -0,0 +1,13 @@
from atst.database import db
from atst.models.project import Project
class Projects(object):
@classmethod
def create(cls, workspace, name, description):
project = Project(workspace=workspace, name=name, description=description)
db.session.add(project)
db.session.commit()
return project