-- PostgreSQL Database Backup
-- Database: beyhan_blog
-- Date: 2026-01-12 07:16:22.379301
-- Created by Django Backup System using psycopg2

SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;


-- Table: accounts_customuser
DROP TABLE IF EXISTS "accounts_customuser" CASCADE;
CREATE TABLE "accounts_customuser" (
    "id" BIGSERIAL,
    "password" VARCHAR(128) NOT NULL,
    "last_login" TIMESTAMP WITH TIME ZONE,
    "is_superuser" BOOLEAN NOT NULL,
    "email" VARCHAR(254) NOT NULL,
    "first_name" VARCHAR(150) NOT NULL,
    "last_name" VARCHAR(150) NOT NULL,
    "is_staff" BOOLEAN NOT NULL,
    "is_active" BOOLEAN NOT NULL,
    "date_joined" TIMESTAMP WITH TIME ZONE NOT NULL
);

-- Data for table: accounts_customuser
INSERT INTO "accounts_customuser" ("id", "password", "last_login", "is_superuser", "email", "first_name", "last_name", "is_staff", "is_active", "date_joined") VALUES (1, 'pbkdf2_sha256$1000000$GX81pO8hrGgci22S3biD0I$V0fmXqQTKef7ydi+ouANZgoz5Fgkke7f4//t9VZZjcU=', '2026-01-12T07:16:09.143691+00:00'::timestamptz, true, 'beyhan@beyhan.dev', '', '', true, true, '2026-01-12T07:15:46.188521+00:00'::timestamptz);


-- Table: accounts_customuser_groups
DROP TABLE IF EXISTS "accounts_customuser_groups" CASCADE;
CREATE TABLE "accounts_customuser_groups" (
    "id" BIGSERIAL,
    "customuser_id" BIGINT NOT NULL,
    "group_id" INTEGER NOT NULL
);


-- Table: accounts_customuser_user_permissions
DROP TABLE IF EXISTS "accounts_customuser_user_permissions" CASCADE;
CREATE TABLE "accounts_customuser_user_permissions" (
    "id" BIGSERIAL,
    "customuser_id" BIGINT NOT NULL,
    "permission_id" INTEGER NOT NULL
);


-- Table: auth_group
DROP TABLE IF EXISTS "auth_group" CASCADE;
CREATE TABLE "auth_group" (
    "id" SERIAL,
    "name" VARCHAR(150) NOT NULL
);


-- Table: auth_group_permissions
DROP TABLE IF EXISTS "auth_group_permissions" CASCADE;
CREATE TABLE "auth_group_permissions" (
    "id" BIGSERIAL,
    "group_id" INTEGER NOT NULL,
    "permission_id" INTEGER NOT NULL
);


-- Table: auth_permission
DROP TABLE IF EXISTS "auth_permission" CASCADE;
CREATE TABLE "auth_permission" (
    "id" SERIAL,
    "name" VARCHAR(255) NOT NULL,
    "content_type_id" INTEGER NOT NULL,
    "codename" VARCHAR(100) NOT NULL
);

-- Data for table: auth_permission
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (1, 'Can add log entry', 1, 'add_logentry');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (2, 'Can change log entry', 1, 'change_logentry');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (3, 'Can delete log entry', 1, 'delete_logentry');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (4, 'Can view log entry', 1, 'view_logentry');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (5, 'Can add permission', 2, 'add_permission');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (6, 'Can change permission', 2, 'change_permission');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (7, 'Can delete permission', 2, 'delete_permission');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (8, 'Can view permission', 2, 'view_permission');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (9, 'Can add group', 3, 'add_group');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (10, 'Can change group', 3, 'change_group');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (11, 'Can delete group', 3, 'delete_group');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (12, 'Can view group', 3, 'view_group');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (13, 'Can add content type', 4, 'add_contenttype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (14, 'Can change content type', 4, 'change_contenttype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (15, 'Can delete content type', 4, 'delete_contenttype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (16, 'Can view content type', 4, 'view_contenttype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (17, 'Can add session', 5, 'add_session');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (18, 'Can change session', 5, 'change_session');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (19, 'Can delete session', 5, 'delete_session');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (20, 'Can view session', 5, 'view_session');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (21, 'Can add association', 6, 'add_association');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (22, 'Can change association', 6, 'change_association');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (23, 'Can delete association', 6, 'delete_association');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (24, 'Can view association', 6, 'view_association');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (25, 'Can add code', 7, 'add_code');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (26, 'Can change code', 7, 'change_code');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (27, 'Can delete code', 7, 'delete_code');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (28, 'Can view code', 7, 'view_code');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (29, 'Can add nonce', 8, 'add_nonce');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (30, 'Can change nonce', 8, 'change_nonce');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (31, 'Can delete nonce', 8, 'delete_nonce');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (32, 'Can view nonce', 8, 'view_nonce');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (33, 'Can add user social auth', 9, 'add_usersocialauth');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (34, 'Can change user social auth', 9, 'change_usersocialauth');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (35, 'Can delete user social auth', 9, 'delete_usersocialauth');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (36, 'Can view user social auth', 9, 'view_usersocialauth');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (37, 'Can add partial', 10, 'add_partial');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (38, 'Can change partial', 10, 'change_partial');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (39, 'Can delete partial', 10, 'delete_partial');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (40, 'Can view partial', 10, 'view_partial');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (41, 'Can add task result', 11, 'add_taskresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (42, 'Can change task result', 11, 'change_taskresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (43, 'Can delete task result', 11, 'delete_taskresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (44, 'Can view task result', 11, 'view_taskresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (45, 'Can add chord counter', 12, 'add_chordcounter');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (46, 'Can change chord counter', 12, 'change_chordcounter');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (47, 'Can delete chord counter', 12, 'delete_chordcounter');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (48, 'Can view chord counter', 12, 'view_chordcounter');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (49, 'Can add group result', 13, 'add_groupresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (50, 'Can change group result', 13, 'change_groupresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (51, 'Can delete group result', 13, 'delete_groupresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (52, 'Can view group result', 13, 'view_groupresult');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (53, 'Can add site', 14, 'add_site');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (54, 'Can change site', 14, 'change_site');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (55, 'Can delete site', 14, 'delete_site');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (56, 'Can view site', 14, 'view_site');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (57, 'Can add user', 15, 'add_customuser');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (58, 'Can change user', 15, 'change_customuser');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (59, 'Can delete user', 15, 'delete_customuser');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (60, 'Can view user', 15, 'view_customuser');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (61, 'Can add Post Tagı', 16, 'add_tags');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (62, 'Can change Post Tagı', 16, 'change_tags');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (63, 'Can delete Post Tagı', 16, 'delete_tags');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (64, 'Can view Post Tagı', 16, 'view_tags');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (65, 'Can add Post Kategori', 17, 'add_category');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (66, 'Can change Post Kategori', 17, 'change_category');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (67, 'Can delete Post Kategori', 17, 'delete_category');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (68, 'Can view Post Kategori', 17, 'view_category');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (69, 'Can add Post', 18, 'add_post');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (70, 'Can change Post', 18, 'change_post');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (71, 'Can delete Post', 18, 'delete_post');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (72, 'Can view Post', 18, 'view_post');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (73, 'Can add Kategori Ziyareti', 19, 'add_categoryview');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (74, 'Can change Kategori Ziyareti', 19, 'change_categoryview');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (75, 'Can delete Kategori Ziyareti', 19, 'delete_categoryview');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (76, 'Can view Kategori Ziyareti', 19, 'view_categoryview');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (77, 'Can add Post Yorum', 20, 'add_comment');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (78, 'Can change Post Yorum', 20, 'change_comment');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (79, 'Can delete Post Yorum', 20, 'delete_comment');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (80, 'Can view Post Yorum', 20, 'view_comment');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (81, 'Can add Veritabanı Yedeği', 21, 'add_databasebackup');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (82, 'Can change Veritabanı Yedeği', 21, 'change_databasebackup');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (83, 'Can delete Veritabanı Yedeği', 21, 'delete_databasebackup');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (84, 'Can view Veritabanı Yedeği', 21, 'view_databasebackup');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (85, 'Can add Banner', 22, 'add_banner');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (86, 'Can change Banner', 22, 'change_banner');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (87, 'Can delete Banner', 22, 'delete_banner');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (88, 'Can view Banner', 22, 'view_banner');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (89, 'Can add Site Ayarı', 23, 'add_setting');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (90, 'Can change Site Ayarı', 23, 'change_setting');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (91, 'Can delete Site Ayarı', 23, 'delete_setting');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (92, 'Can view Site Ayarı', 23, 'view_setting');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (93, 'Can add Json To Type', 24, 'add_jsontotype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (94, 'Can change Json To Type', 24, 'change_jsontotype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (95, 'Can delete Json To Type', 24, 'delete_jsontotype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (96, 'Can view Json To Type', 24, 'view_jsontotype');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (97, 'Can add Resim', 25, 'add_postimages');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (98, 'Can change Resim', 25, 'change_postimages');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (99, 'Can delete Resim', 25, 'delete_postimages');
INSERT INTO "auth_permission" ("id", "name", "content_type_id", "codename") VALUES (100, 'Can view Resim', 25, 'view_postimages');


-- Table: backup_databasebackup
DROP TABLE IF EXISTS "backup_databasebackup" CASCADE;
CREATE TABLE "backup_databasebackup" (
    "id" BIGSERIAL,
    "name" VARCHAR(255) NOT NULL,
    "file_path" VARCHAR(500),
    "file_size" BIGINT,
    "status" VARCHAR(20) NOT NULL,
    "backup_type" VARCHAR(20) NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "completed_at" TIMESTAMP WITH TIME ZONE,
    "error_message" TEXT,
    "notes" TEXT,
    "created_by_id" BIGINT
);

-- Data for table: backup_databasebackup
INSERT INTO "backup_databasebackup" ("id", "name", "file_path", "file_size", "status", "backup_type", "created_at", "completed_at", "error_message", "notes", "created_by_id") VALUES (1, 'Manuel Yedek - 2026-01-12 07:16:22', NULL, NULL, 'in_progress', 'manual', '2026-01-12T07:16:22.313915+00:00'::timestamptz, NULL, NULL, NULL, 1);


-- Table: banners
DROP TABLE IF EXISTS "banners" CASCADE;
CREATE TABLE "banners" (
    "id" BIGSERIAL,
    "color" VARCHAR(25) NOT NULL,
    "title" VARCHAR(254),
    "text1" VARCHAR(254),
    "text2" VARCHAR(254),
    "text4" VARCHAR(254),
    "text5" VARCHAR(254),
    "image" VARCHAR(100) NOT NULL,
    "image_k" VARCHAR(100),
    "image_k_txt" VARCHAR(254),
    "is_active" BOOLEAN NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL
);


-- Table: categories
DROP TABLE IF EXISTS "categories" CASCADE;
CREATE TABLE "categories" (
    "id" BIGSERIAL,
    "title" VARCHAR(254) NOT NULL,
    "keywords" VARCHAR(254) NOT NULL,
    "description" VARCHAR(254) NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "is_active" BOOLEAN NOT NULL,
    "order" INTEGER NOT NULL,
    "slug" VARCHAR(250) NOT NULL,
    "image" VARCHAR(100),
    "parent_id" BIGINT
);


-- Table: category_views
DROP TABLE IF EXISTS "category_views" CASCADE;
CREATE TABLE "category_views" (
    "id" BIGSERIAL,
    "ip_address" INET NOT NULL,
    "user_agent" TEXT,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "category_id" BIGINT NOT NULL
);


-- Table: comments
DROP TABLE IF EXISTS "comments" CASCADE;
CREATE TABLE "comments" (
    "id" BIGSERIAL,
    "title" VARCHAR(254) NOT NULL,
    "body" TEXT NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "is_active" BOOLEAN NOT NULL,
    "slug" VARCHAR(50) NOT NULL,
    "parent_id" BIGINT,
    "user_id" BIGINT NOT NULL,
    "post_id" BIGINT NOT NULL
);


-- Table: django_admin_log
DROP TABLE IF EXISTS "django_admin_log" CASCADE;
CREATE TABLE "django_admin_log" (
    "id" SERIAL,
    "action_time" TIMESTAMP WITH TIME ZONE NOT NULL,
    "object_id" TEXT,
    "object_repr" VARCHAR(200) NOT NULL,
    "action_flag" SMALLINT NOT NULL,
    "change_message" TEXT NOT NULL,
    "content_type_id" INTEGER,
    "user_id" BIGINT NOT NULL
);


-- Table: django_celery_results_chordcounter
DROP TABLE IF EXISTS "django_celery_results_chordcounter" CASCADE;
CREATE TABLE "django_celery_results_chordcounter" (
    "id" SERIAL,
    "group_id" VARCHAR(255) NOT NULL,
    "sub_tasks" TEXT NOT NULL,
    "count" INTEGER NOT NULL
);


-- Table: django_celery_results_groupresult
DROP TABLE IF EXISTS "django_celery_results_groupresult" CASCADE;
CREATE TABLE "django_celery_results_groupresult" (
    "id" SERIAL,
    "group_id" VARCHAR(255) NOT NULL,
    "date_created" TIMESTAMP WITH TIME ZONE NOT NULL,
    "date_done" TIMESTAMP WITH TIME ZONE NOT NULL,
    "content_type" VARCHAR(128) NOT NULL,
    "content_encoding" VARCHAR(64) NOT NULL,
    "result" TEXT
);


-- Table: django_celery_results_taskresult
DROP TABLE IF EXISTS "django_celery_results_taskresult" CASCADE;
CREATE TABLE "django_celery_results_taskresult" (
    "id" SERIAL,
    "task_id" VARCHAR(255) NOT NULL,
    "status" VARCHAR(50) NOT NULL,
    "content_type" VARCHAR(128) NOT NULL,
    "content_encoding" VARCHAR(64) NOT NULL,
    "result" TEXT,
    "date_done" TIMESTAMP WITH TIME ZONE NOT NULL,
    "traceback" TEXT,
    "meta" TEXT,
    "task_args" TEXT,
    "task_kwargs" TEXT,
    "task_name" VARCHAR(255),
    "worker" VARCHAR(100),
    "date_created" TIMESTAMP WITH TIME ZONE NOT NULL,
    "periodic_task_name" VARCHAR(255),
    "date_started" TIMESTAMP WITH TIME ZONE
);


-- Table: django_content_type
DROP TABLE IF EXISTS "django_content_type" CASCADE;
CREATE TABLE "django_content_type" (
    "id" SERIAL,
    "app_label" VARCHAR(100) NOT NULL,
    "model" VARCHAR(100) NOT NULL
);

-- Data for table: django_content_type
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (1, 'admin', 'logentry');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (2, 'auth', 'permission');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (3, 'auth', 'group');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (4, 'contenttypes', 'contenttype');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (5, 'sessions', 'session');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (6, 'social_django', 'association');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (7, 'social_django', 'code');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (8, 'social_django', 'nonce');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (9, 'social_django', 'usersocialauth');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (10, 'social_django', 'partial');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (11, 'django_celery_results', 'taskresult');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (12, 'django_celery_results', 'chordcounter');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (13, 'django_celery_results', 'groupresult');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (14, 'sites', 'site');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (15, 'accounts', 'customuser');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (16, 'blog', 'tags');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (17, 'blog', 'category');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (18, 'blog', 'post');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (19, 'blog', 'categoryview');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (20, 'blog', 'comment');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (21, 'backup', 'databasebackup');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (22, 'settings', 'banner');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (23, 'settings', 'setting');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (24, 'utils', 'jsontotype');
INSERT INTO "django_content_type" ("id", "app_label", "model") VALUES (25, 'image', 'postimages');


-- Table: django_migrations
DROP TABLE IF EXISTS "django_migrations" CASCADE;
CREATE TABLE "django_migrations" (
    "id" BIGSERIAL,
    "app" VARCHAR(255) NOT NULL,
    "name" VARCHAR(255) NOT NULL,
    "applied" TIMESTAMP WITH TIME ZONE NOT NULL
);

-- Data for table: django_migrations
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (1, 'contenttypes', '0001_initial', '2026-01-12T07:15:12.542418+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (2, 'contenttypes', '0002_remove_content_type_name', '2026-01-12T07:15:12.577999+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (3, 'auth', '0001_initial', '2026-01-12T07:15:12.702340+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (4, 'auth', '0002_alter_permission_name_max_length', '2026-01-12T07:15:12.723516+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (5, 'auth', '0003_alter_user_email_max_length', '2026-01-12T07:15:12.737686+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (6, 'auth', '0004_alter_user_username_opts', '2026-01-12T07:15:12.755728+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (7, 'auth', '0005_alter_user_last_login_null', '2026-01-12T07:15:12.773646+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (8, 'auth', '0006_require_contenttypes_0002', '2026-01-12T07:15:12.784387+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (9, 'auth', '0007_alter_validators_add_error_messages', '2026-01-12T07:15:12.801834+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (10, 'auth', '0008_alter_user_username_max_length', '2026-01-12T07:15:12.822500+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (11, 'auth', '0009_alter_user_last_name_max_length', '2026-01-12T07:15:12.948552+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (12, 'auth', '0010_alter_group_name_max_length', '2026-01-12T07:15:12.979395+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (13, 'auth', '0011_update_proxy_permissions', '2026-01-12T07:15:12.991361+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (14, 'auth', '0012_alter_user_first_name_max_length', '2026-01-12T07:15:13.006024+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (15, 'accounts', '0001_initial', '2026-01-12T07:15:13.160603+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (16, 'admin', '0001_initial', '2026-01-12T07:15:13.226104+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (17, 'admin', '0002_logentry_remove_auto_add', '2026-01-12T07:15:13.243791+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (18, 'admin', '0003_logentry_add_action_flag_choices', '2026-01-12T07:15:13.262814+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (19, 'backup', '0001_initial', '2026-01-12T07:15:13.321501+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (20, 'blog', '0001_initial', '2026-01-12T07:15:14.087778+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (21, 'blog', '0002_remove_comment_product_comment_post', '2026-01-12T07:15:14.258717+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (22, 'django_celery_results', '0001_initial', '2026-01-12T07:15:14.311609+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (23, 'django_celery_results', '0002_add_task_name_args_kwargs', '2026-01-12T07:15:14.346503+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (24, 'django_celery_results', '0003_auto_20181106_1101', '2026-01-12T07:15:14.358169+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (25, 'django_celery_results', '0004_auto_20190516_0412', '2026-01-12T07:15:14.426631+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (26, 'django_celery_results', '0005_taskresult_worker', '2026-01-12T07:15:14.458888+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (27, 'django_celery_results', '0006_taskresult_date_created', '2026-01-12T07:15:14.514074+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (28, 'django_celery_results', '0007_remove_taskresult_hidden', '2026-01-12T07:15:14.530647+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (29, 'django_celery_results', '0008_chordcounter', '2026-01-12T07:15:14.575349+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (30, 'django_celery_results', '0009_groupresult', '2026-01-12T07:15:14.838834+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (31, 'django_celery_results', '0010_remove_duplicate_indices', '2026-01-12T07:15:14.867897+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (32, 'django_celery_results', '0011_taskresult_periodic_task_name', '2026-01-12T07:15:14.884769+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (33, 'django_celery_results', '0012_taskresult_date_started', '2026-01-12T07:15:14.902053+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (34, 'django_celery_results', '0013_taskresult_django_cele_periodi_1993cf_idx', '2026-01-12T07:15:14.921276+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (35, 'django_celery_results', '0014_alter_taskresult_status', '2026-01-12T07:15:14.930947+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (36, 'image', '0001_initial', '2026-01-12T07:15:14.991057+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (37, 'image', '0002_rename_post_postimages', '2026-01-12T07:15:15.036764+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (38, 'image', '0003_postimages_user', '2026-01-12T07:15:15.141526+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (39, 'image', '0004_alter_postimages_options', '2026-01-12T07:15:15.159825+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (40, 'sessions', '0001_initial', '2026-01-12T07:15:15.214435+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (41, 'settings', '0001_initial', '2026-01-12T07:15:15.259589+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (42, 'sites', '0001_initial', '2026-01-12T07:15:15.288083+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (43, 'sites', '0002_alter_domain_unique', '2026-01-12T07:15:15.315012+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (44, 'default', '0001_initial', '2026-01-12T07:15:15.590869+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (45, 'social_auth', '0001_initial', '2026-01-12T07:15:15.595485+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (46, 'default', '0002_add_related_name', '2026-01-12T07:15:15.621437+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (47, 'social_auth', '0002_add_related_name', '2026-01-12T07:15:15.628944+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (48, 'default', '0003_alter_email_max_length', '2026-01-12T07:15:15.652502+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (49, 'social_auth', '0003_alter_email_max_length', '2026-01-12T07:15:15.655907+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (50, 'default', '0004_auto_20160423_0400', '2026-01-12T07:15:15.685906+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (51, 'social_auth', '0004_auto_20160423_0400', '2026-01-12T07:15:15.696546+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (52, 'social_auth', '0005_auto_20160727_2333', '2026-01-12T07:15:15.729349+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (53, 'social_django', '0006_partial', '2026-01-12T07:15:15.773666+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (54, 'social_django', '0007_code_timestamp', '2026-01-12T07:15:15.921446+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (55, 'social_django', '0008_partial_timestamp', '2026-01-12T07:15:15.953188+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (56, 'social_django', '0009_auto_20191118_0520', '2026-01-12T07:15:16.028372+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (57, 'social_django', '0010_uid_db_index', '2026-01-12T07:15:16.093575+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (58, 'social_django', '0011_alter_id_fields', '2026-01-12T07:15:16.452604+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (59, 'social_django', '0012_usersocialauth_extra_data_new', '2026-01-12T07:15:16.517085+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (60, 'social_django', '0013_migrate_extra_data', '2026-01-12T07:15:16.575953+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (61, 'social_django', '0014_remove_usersocialauth_extra_data', '2026-01-12T07:15:16.621255+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (62, 'social_django', '0015_rename_extra_data_new_usersocialauth_extra_data', '2026-01-12T07:15:16.656994+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (63, 'social_django', '0016_alter_usersocialauth_extra_data', '2026-01-12T07:15:16.789930+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (64, 'social_django', '0017_usersocialauth_user_social_auth_uid_required', '2026-01-12T07:15:16.827312+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (65, 'utils', '0001_initial', '2026-01-12T07:15:16.912384+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (66, 'utils', '0002_alter_jsontotype_json_data', '2026-01-12T07:15:16.955381+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (67, 'utils', '0003_alter_jsontotype_type_data', '2026-01-12T07:15:16.993888+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (68, 'social_django', '0002_add_related_name', '2026-01-12T07:15:17.006495+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (69, 'social_django', '0003_alter_email_max_length', '2026-01-12T07:15:17.014954+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (70, 'social_django', '0005_auto_20160727_2333', '2026-01-12T07:15:17.022004+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (71, 'social_django', '0004_auto_20160423_0400', '2026-01-12T07:15:17.026070+00:00'::timestamptz);
INSERT INTO "django_migrations" ("id", "app", "name", "applied") VALUES (72, 'social_django', '0001_initial', '2026-01-12T07:15:17.029857+00:00'::timestamptz);


-- Table: django_session
DROP TABLE IF EXISTS "django_session" CASCADE;
CREATE TABLE "django_session" (
    "session_key" VARCHAR(40) NOT NULL,
    "session_data" TEXT NOT NULL,
    "expire_date" TIMESTAMP WITH TIME ZONE NOT NULL
);

-- Data for table: django_session
INSERT INTO "django_session" ("session_key", "session_data", "expire_date") VALUES ('9v6wn2risssnsguguvyp9biej830n5ir', '.eJxVjMsOwiAQRf-FtSGF8hhcuvcbyDADUjU0Ke3K-O_apAvd3nPOfYmI21rj1vMSJxZnocTpd0tIj9x2wHdst1nS3NZlSnJX5EG7vM6cn5fD_Tuo2Ou3dlQcaAOFaYDBevQFrfelJBMMJ529Bo2jdwRMABwIikvKuuDUqGwQ7w_pzjeh:1vfC9p:LBP6Zi9NBG_1yjpySQg18YhG_BSFcfHu3yaT4vJNzJE', '2026-01-26T07:16:09.151496+00:00'::timestamptz);


-- Table: django_site
DROP TABLE IF EXISTS "django_site" CASCADE;
CREATE TABLE "django_site" (
    "id" SERIAL,
    "domain" VARCHAR(100) NOT NULL,
    "name" VARCHAR(50) NOT NULL
);

-- Data for table: django_site
INSERT INTO "django_site" ("id", "domain", "name") VALUES (1, 'example.com', 'example.com');


-- Table: images
DROP TABLE IF EXISTS "images" CASCADE;
CREATE TABLE "images" (
    "id" BIGSERIAL,
    "title" VARCHAR(254) NOT NULL,
    "path" VARCHAR(254) NOT NULL,
    "processed_path" VARCHAR(254) NOT NULL,
    "original_filename" VARCHAR(254) NOT NULL,
    "format" VARCHAR(254) NOT NULL,
    "width" INTEGER NOT NULL,
    "height" INTEGER NOT NULL,
    "size" INTEGER NOT NULL,
    "quality" INTEGER NOT NULL,
    "slug" VARCHAR(250) NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "is_active" BOOLEAN NOT NULL,
    "is_front" BOOLEAN NOT NULL,
    "user_id" BIGINT NOT NULL
);


-- Table: json_to_type
DROP TABLE IF EXISTS "json_to_type" CASCADE;
CREATE TABLE "json_to_type" (
    "id" BIGSERIAL,
    "title" VARCHAR(254) NOT NULL,
    "json_data" JSONB NOT NULL,
    "type_data" TEXT NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "is_active" BOOLEAN NOT NULL,
    "user_id" BIGINT NOT NULL
);


-- Table: posts
DROP TABLE IF EXISTS "posts" CASCADE;
CREATE TABLE "posts" (
    "id" BIGSERIAL,
    "title" VARCHAR(254) NOT NULL,
    "content" TEXT,
    "keywords" VARCHAR(254) NOT NULL,
    "image" VARCHAR(100),
    "thumb" VARCHAR(100),
    "video" VARCHAR(254),
    "slug" VARCHAR(250) NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "is_active" BOOLEAN NOT NULL,
    "is_front" BOOLEAN NOT NULL,
    "parent_id" BIGINT,
    "user_id" BIGINT
);


-- Table: posts_categories
DROP TABLE IF EXISTS "posts_categories" CASCADE;
CREATE TABLE "posts_categories" (
    "id" BIGSERIAL,
    "post_id" BIGINT NOT NULL,
    "category_id" BIGINT NOT NULL
);


-- Table: posts_tags
DROP TABLE IF EXISTS "posts_tags" CASCADE;
CREATE TABLE "posts_tags" (
    "id" BIGSERIAL,
    "post_id" BIGINT NOT NULL,
    "tags_id" BIGINT NOT NULL
);


-- Table: settings
DROP TABLE IF EXISTS "settings" CASCADE;
CREATE TABLE "settings" (
    "id" BIGSERIAL,
    "title" VARCHAR(254) NOT NULL,
    "meta_title" VARCHAR(254) NOT NULL,
    "meta_description" VARCHAR(254) NOT NULL,
    "phone" VARCHAR(254) NOT NULL,
    "url" VARCHAR(254),
    "email" VARCHAR(254) NOT NULL,
    "facebook" VARCHAR(254),
    "x" VARCHAR(254),
    "instagram" VARCHAR(254),
    "whatsapp" VARCHAR(254),
    "slogan" VARCHAR(254),
    "w_logo" VARCHAR(100),
    "b_logo" VARCHAR(100),
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "is_active" BOOLEAN NOT NULL
);


-- Table: social_auth_association
DROP TABLE IF EXISTS "social_auth_association" CASCADE;
CREATE TABLE "social_auth_association" (
    "id" BIGSERIAL,
    "server_url" VARCHAR(255) NOT NULL,
    "handle" VARCHAR(255) NOT NULL,
    "secret" VARCHAR(255) NOT NULL,
    "issued" INTEGER NOT NULL,
    "lifetime" INTEGER NOT NULL,
    "assoc_type" VARCHAR(64) NOT NULL
);


-- Table: social_auth_code
DROP TABLE IF EXISTS "social_auth_code" CASCADE;
CREATE TABLE "social_auth_code" (
    "id" BIGSERIAL,
    "email" VARCHAR(254) NOT NULL,
    "code" VARCHAR(32) NOT NULL,
    "verified" BOOLEAN NOT NULL,
    "timestamp" TIMESTAMP WITH TIME ZONE NOT NULL
);


-- Table: social_auth_nonce
DROP TABLE IF EXISTS "social_auth_nonce" CASCADE;
CREATE TABLE "social_auth_nonce" (
    "id" BIGSERIAL,
    "server_url" VARCHAR(255) NOT NULL,
    "timestamp" INTEGER NOT NULL,
    "salt" VARCHAR(65) NOT NULL
);


-- Table: social_auth_partial
DROP TABLE IF EXISTS "social_auth_partial" CASCADE;
CREATE TABLE "social_auth_partial" (
    "id" BIGSERIAL,
    "token" VARCHAR(32) NOT NULL,
    "next_step" SMALLINT NOT NULL,
    "backend" VARCHAR(32) NOT NULL,
    "timestamp" TIMESTAMP WITH TIME ZONE NOT NULL,
    "data" JSONB NOT NULL
);


-- Table: social_auth_usersocialauth
DROP TABLE IF EXISTS "social_auth_usersocialauth" CASCADE;
CREATE TABLE "social_auth_usersocialauth" (
    "id" BIGSERIAL,
    "provider" VARCHAR(32) NOT NULL,
    "uid" VARCHAR(255) NOT NULL,
    "user_id" BIGINT NOT NULL,
    "created" TIMESTAMP WITH TIME ZONE NOT NULL,
    "modified" TIMESTAMP WITH TIME ZONE NOT NULL,
    "extra_data" JSONB NOT NULL
);


-- Table: tags
DROP TABLE IF EXISTS "tags" CASCADE;
CREATE TABLE "tags" (
    "id" BIGSERIAL,
    "tag" VARCHAR(254) NOT NULL,
    "slug" VARCHAR(250) NOT NULL,
    "created_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL,
    "is_active" BOOLEAN NOT NULL
);


-- Reset sequences
SELECT setval('django_migrations_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "django_migrations"));
SELECT setval('django_content_type_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "django_content_type"));
SELECT setval('auth_permission_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "auth_permission"));
SELECT setval('auth_group_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "auth_group"));
SELECT setval('auth_group_permissions_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "auth_group_permissions"));
SELECT setval('accounts_customuser_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "accounts_customuser"));
SELECT setval('accounts_customuser_groups_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "accounts_customuser_groups"));
SELECT setval('accounts_customuser_user_permissions_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "accounts_customuser_user_permissions"));
SELECT setval('django_admin_log_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "django_admin_log"));
SELECT setval('backup_databasebackup_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "backup_databasebackup"));
SELECT setval('tags_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "tags"));
SELECT setval('categories_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "categories"));
SELECT setval('posts_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "posts"));
SELECT setval('posts_categories_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "posts_categories"));
SELECT setval('posts_tags_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "posts_tags"));
SELECT setval('category_views_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "category_views"));
SELECT setval('comments_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "comments"));
SELECT setval('django_celery_results_taskresult_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "django_celery_results_taskresult"));
SELECT setval('django_celery_results_chordcounter_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "django_celery_results_chordcounter"));
SELECT setval('django_celery_results_groupresult_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "django_celery_results_groupresult"));
SELECT setval('images_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "images"));
SELECT setval('banners_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "banners"));
SELECT setval('settings_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "settings"));
SELECT setval('django_site_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "django_site"));
SELECT setval('social_auth_association_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "social_auth_association"));
SELECT setval('social_auth_code_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "social_auth_code"));
SELECT setval('social_auth_nonce_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "social_auth_nonce"));
SELECT setval('social_auth_usersocialauth_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "social_auth_usersocialauth"));
SELECT setval('social_auth_partial_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "social_auth_partial"));
SELECT setval('json_to_type_id_seq', (SELECT COALESCE(MAX("id"), 1) FROM "json_to_type"));
