First look

This commit is contained in:
florianuhlig
2025-10-02 23:36:57 +02:00
parent 8c8856fc07
commit 4f663eb8a5
8 changed files with 75 additions and 3 deletions

15
sqlLite/create.py Normal file
View File

@@ -0,0 +1,15 @@
import sqlite3
from . import db_name
## Create Tables
def create_table_t_user():
db_con = sqlite3.connect(db_name)
db_cur = db_con.cursor()
db_cur.execute("""
CREATE TABLE IF NOT EXISTS T_USERS (
ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
USERNAME TEXT NOT NULL UNIQUE,
EMAIL TEXT NOT NULL UNIQUE,
PASSWORD TEXT NOT NULL
);""")
db_con.commit()