def _setup(conn):
    """CacheTable setup function."""
    conn.cursor().execute(
        """
    CREATE TABLE IF NOT EXISTS cache_anime (
        aid INTEGER,
        complete INTEGER NOT NULL CHECK(complete IN (0, 1)),
        watched_episodes INTEGER NOT NULL,
        anime_files TEXT,
        PRIMARY KEY (aid),
        FOREIGN KEY (aid) REFERENCES anime(aid)
            ON DELETE CASCADE ON UPDATE CASCADE
    )"""
        )
