gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
14
stub/database/factory.stub
Executable file
14
stub/database/factory.stub
Executable file
@@ -0,0 +1,14 @@
|
||||
from core.http.models import User, Post
|
||||
from core.utils.factory import BaseFaker
|
||||
|
||||
|
||||
class {{name}}(BaseFaker):
|
||||
model = Post
|
||||
|
||||
def handle(self):
|
||||
return {
|
||||
"title": self.faker.name(),
|
||||
"desc": self.faker.text(),
|
||||
"image": self.faker.image_url()
|
||||
}
|
||||
x`
|
||||
6
stub/database/seeder.stub
Executable file
6
stub/database/seeder.stub
Executable file
@@ -0,0 +1,6 @@
|
||||
from core.http.models import User
|
||||
|
||||
|
||||
class {{name}}:
|
||||
def run(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user