Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chaos_familien_duell_frontend
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mowoe
chaos_familien_duell_frontend
Merge requests
!1
V2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
V2
v2
into
master
Overview
0
Commits
4
Changes
3
Merged
mowoe
requested to merge
v2
into
master
6 years ago
Overview
0
Commits
4
Changes
3
Expand
0
0
Merge request reports
Viewing commit
37f86cf9
Prev
Next
Show latest version
3 files
+
27
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
37f86cf9
+more init foo
· 37f86cf9
leo
authored
6 years ago
model/__init__.py
+
13
−
0
Options
from
peewee
import
SqliteDatabase
from
peewee
import
Model
sqlite
=
SqliteDatabase
(
"
model/cfd.sqlite
"
,
pragmas
=
{
'
foreign_keys
'
:
1
})
sqlite
.
connect
()
class
BaseModel
(
Model
):
class
Meta
():
database
=
sqlite
sqlite
.
create_tables
([
Team
,
Game
,
Round
,
Question
,
Answer
])
\ No newline at end of file
Loading