 -- Name: timespent_teacher(integer); Type: FUNCTION; Schema: public; Owner: -
 --
 
-CREATE FUNCTION public.timespent_teacher(teacher integer) RETURNS bigint
+CREATE FUNCTION timespent_teacher(teacher integer) RETURNS bigint
     LANGUAGE sql
     AS $$
         SELECT COALESCE(SUM(time_spent),0) FROM (SELECT activity_sessions.id AS activity_session_id, timespent_activity_session(activity_sessions.id) as time_spent FROM users

-- Name: schools_users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.schools_users_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE

-- Name: blog_posts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--

ALTER SEQUENCE blog_posts_id_seq OWNED BY blog_posts.id;


--
-- Name: categories; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE categories (
    id integer NOT NULL,
    title text,
    created_at timestamp without time zone NOT NULL,
