import sqlite3
conn = sqlite3.connect('school_classes.db')
cursor = conn.cursor()
cursor.execute('''CREATE TABLE IF NOT EXISTS classes (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    class_name TEXT NOT NULL,
    classroom TEXT NOT NULL,
    parent_room TEXT NOT NULL,
    teacher_name TEXT NOT NULL,
    internal_number TEXT NOT NULL,
    mobile_number TEXT NOT NULL
)''')
conn.commit()
print("✅ Database and table created successfully!")
conn.close()