Fixed code style in db schema definitions.
This commit is contained in:
parent
ce0a01cb7c
commit
9afd86d5ab
1 changed files with 98 additions and 100 deletions
|
@ -1,11 +1,9 @@
|
||||||
|
|
||||||
from typing import Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
|
|
||||||
SCHEMAS: Dict[int, List[str]] = dict()
|
SCHEMAS: Dict[int, List[str]] = dict()
|
||||||
|
|
||||||
|
SCHEMAS[1] = [
|
||||||
SCHEMAS[1] = ['''
|
'''
|
||||||
CREATE TABLE users (
|
CREATE TABLE users (
|
||||||
user_id INTEGER PRIMARY KEY,
|
user_id INTEGER PRIMARY KEY,
|
||||||
username TEXT UNIQUE NOT NULL,
|
username TEXT UNIQUE NOT NULL,
|
||||||
|
@ -40,8 +38,8 @@ CREATE TABLE consumption (
|
||||||
);
|
);
|
||||||
''']
|
''']
|
||||||
|
|
||||||
|
SCHEMAS[2] = [
|
||||||
SCHEMAS[2] = ['''
|
'''
|
||||||
CREATE TABLE users (
|
CREATE TABLE users (
|
||||||
user_id INTEGER PRIMARY KEY,
|
user_id INTEGER PRIMARY KEY,
|
||||||
username TEXT UNIQUE NOT NULL,
|
username TEXT UNIQUE NOT NULL,
|
||||||
|
|
Loading…
Reference in a new issue