-- PostgreSQL Database Backup
-- Database: shop
-- Date: 2026-01-19 01:29:47.426406
-- 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 BIGINT NOT NULL,
    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$1200000$X8eAbh3gvzNupPRIIc1RI4$SjIgdHr0UTX5IO0pMY89BBiqxOLzLly3BG/1ZkEPuR4=', '2026-01-18 22:28:08.286360+00:00', True, 'beyhan@beyhan.dev', '', '', True, True, '2026-01-18 22:27:20.666592+00:00');


-- Table: accounts_customuser_groups
DROP TABLE IF EXISTS accounts_customuser_groups CASCADE;
CREATE TABLE accounts_customuser_groups (
    id BIGINT NOT NULL,
    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 BIGINT NOT NULL,
    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 INTEGER NOT NULL,
    name VARCHAR(150) NOT NULL
);


-- Table: auth_group_permissions
DROP TABLE IF EXISTS auth_group_permissions CASCADE;
CREATE TABLE auth_group_permissions (
    id BIGINT NOT NULL,
    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 INTEGER NOT NULL,
    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', 3, 'add_permission');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (6, 'Can change permission', 3, 'change_permission');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (7, 'Can delete permission', 3, 'delete_permission');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (8, 'Can view permission', 3, 'view_permission');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (9, 'Can add group', 2, 'add_group');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (10, 'Can change group', 2, 'change_group');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (11, 'Can delete group', 2, 'delete_group');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (12, 'Can view group', 2, '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 task result', 8, 'add_taskresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (22, 'Can change task result', 8, 'change_taskresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (23, 'Can delete task result', 8, 'delete_taskresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (24, 'Can view task result', 8, 'view_taskresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (25, 'Can add chord counter', 6, 'add_chordcounter');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (26, 'Can change chord counter', 6, 'change_chordcounter');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (27, 'Can delete chord counter', 6, 'delete_chordcounter');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (28, 'Can view chord counter', 6, 'view_chordcounter');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (29, 'Can add group result', 7, 'add_groupresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (30, 'Can change group result', 7, 'change_groupresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (31, 'Can delete group result', 7, 'delete_groupresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (32, 'Can view group result', 7, 'view_groupresult');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (33, 'Can add crontab', 10, 'add_crontabschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (34, 'Can change crontab', 10, 'change_crontabschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (35, 'Can delete crontab', 10, 'delete_crontabschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (36, 'Can view crontab', 10, 'view_crontabschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (37, 'Can add interval', 11, 'add_intervalschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (38, 'Can change interval', 11, 'change_intervalschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (39, 'Can delete interval', 11, 'delete_intervalschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (40, 'Can view interval', 11, 'view_intervalschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (41, 'Can add periodic task', 12, 'add_periodictask');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (42, 'Can change periodic task', 12, 'change_periodictask');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (43, 'Can delete periodic task', 12, 'delete_periodictask');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (44, 'Can view periodic task', 12, 'view_periodictask');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (45, 'Can add periodic tasks', 13, 'add_periodictasks');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (46, 'Can change periodic tasks', 13, 'change_periodictasks');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (47, 'Can delete periodic tasks', 13, 'delete_periodictasks');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (48, 'Can view periodic tasks', 13, 'view_periodictasks');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (49, 'Can add solar event', 14, 'add_solarschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (50, 'Can change solar event', 14, 'change_solarschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (51, 'Can delete solar event', 14, 'delete_solarschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (52, 'Can view solar event', 14, 'view_solarschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (53, 'Can add clocked', 9, 'add_clockedschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (54, 'Can change clocked', 9, 'change_clockedschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (55, 'Can delete clocked', 9, 'delete_clockedschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (56, 'Can view clocked', 9, 'view_clockedschedule');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (57, 'Can add association', 15, 'add_association');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (58, 'Can change association', 15, 'change_association');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (59, 'Can delete association', 15, 'delete_association');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (60, 'Can view association', 15, 'view_association');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (61, 'Can add code', 16, 'add_code');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (62, 'Can change code', 16, 'change_code');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (63, 'Can delete code', 16, 'delete_code');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (64, 'Can view code', 16, 'view_code');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (65, 'Can add nonce', 17, 'add_nonce');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (66, 'Can change nonce', 17, 'change_nonce');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (67, 'Can delete nonce', 17, 'delete_nonce');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (68, 'Can view nonce', 17, 'view_nonce');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (69, 'Can add user social auth', 19, 'add_usersocialauth');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (70, 'Can change user social auth', 19, 'change_usersocialauth');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (71, 'Can delete user social auth', 19, 'delete_usersocialauth');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (72, 'Can view user social auth', 19, 'view_usersocialauth');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (73, 'Can add partial', 18, 'add_partial');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (74, 'Can change partial', 18, 'change_partial');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (75, 'Can delete partial', 18, 'delete_partial');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (76, 'Can view partial', 18, 'view_partial');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (77, 'Can add site', 20, 'add_site');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (78, 'Can change site', 20, 'change_site');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (79, 'Can delete site', 20, 'delete_site');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (80, 'Can view site', 20, 'view_site');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (81, 'Can add user', 21, 'add_customuser');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (82, 'Can change user', 21, 'change_customuser');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (83, 'Can delete user', 21, 'delete_customuser');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (84, 'Can view user', 21, 'view_customuser');
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 Site Ayarı Aç / Kapat', 24, 'add_sitesettings');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (94, 'Can change Site Ayarı Aç / Kapat', 24, 'change_sitesettings');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (95, 'Can delete Site Ayarı Aç / Kapat', 24, 'delete_sitesettings');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (96, 'Can view Site Ayarı Aç / Kapat', 24, 'view_sitesettings');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (97, 'Can add Veritabanı Yedeği', 25, 'add_databasebackup');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (98, 'Can change Veritabanı Yedeği', 25, 'change_databasebackup');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (99, 'Can delete Veritabanı Yedeği', 25, 'delete_databasebackup');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (100, 'Can view Veritabanı Yedeği', 25, 'view_databasebackup');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (101, 'Can add Contact', 26, 'add_contact');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (102, 'Can change Contact', 26, 'change_contact');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (103, 'Can delete Contact', 26, 'delete_contact');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (104, 'Can view Contact', 26, 'view_contact');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (105, 'Can add Galeri Resmi', 29, 'add_images');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (106, 'Can change Galeri Resmi', 29, 'change_images');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (107, 'Can delete Galeri Resmi', 29, 'delete_images');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (108, 'Can view Galeri Resmi', 29, 'view_images');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (109, 'Can add Ürün Kategori', 27, 'add_category');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (110, 'Can change Ürün Kategori', 27, 'change_category');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (111, 'Can delete Ürün Kategori', 27, 'delete_category');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (112, 'Can view Ürün Kategori', 27, 'view_category');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (113, 'Can add Ürün Tagı', 31, 'add_tags');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (114, 'Can change Ürün Tagı', 31, 'change_tags');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (115, 'Can delete Ürün Tagı', 31, 'delete_tags');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (116, 'Can view Ürün Tagı', 31, 'view_tags');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (117, 'Can add Ürün', 30, 'add_product');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (118, 'Can change Ürün', 30, 'change_product');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (119, 'Can delete Ürün', 30, 'delete_product');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (120, 'Can view Ürün', 30, 'view_product');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (121, 'Can add Ürüm Yorum', 28, 'add_comment');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (122, 'Can change Ürüm Yorum', 28, 'change_comment');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (123, 'Can delete Ürüm Yorum', 28, 'delete_comment');
INSERT INTO auth_permission (id, name, content_type_id, codename) VALUES (124, 'Can view Ürüm Yorum', 28, 'view_comment');


-- Table: backup_databasebackup
DROP TABLE IF EXISTS backup_databasebackup CASCADE;
CREATE TABLE backup_databasebackup (
    id BIGINT NOT NULL,
    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, 'aaa', NULL, NULL, 'pending', 'manual', '2026-01-18 22:29:33.971861+00:00', NULL, NULL, '', 1);
INSERT INTO backup_databasebackup (id, name, file_path, file_size, status, backup_type, created_at, completed_at, error_message, notes, created_by_id) VALUES (2, 'Manuel Yedek - 2026-01-18 22:29:47', NULL, NULL, 'in_progress', 'manual', '2026-01-18 22:29:47.223287+00:00', NULL, NULL, NULL, 1);


-- Table: banners
DROP TABLE IF EXISTS banners CASCADE;
CREATE TABLE banners (
    id BIGINT NOT NULL,
    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 BIGINT NOT NULL,
    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,
    parent_id BIGINT,
    images VARCHAR(100)
);


-- Table: comments
DROP TABLE IF EXISTS comments CASCADE;
CREATE TABLE comments (
    id BIGINT NOT NULL,
    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,
    product_id BIGINT NOT NULL
);


-- Table: contacts
DROP TABLE IF EXISTS contacts CASCADE;
CREATE TABLE contacts (
    id BIGINT NOT NULL,
    name VARCHAR(254) NOT NULL,
    email VARCHAR(254) NOT NULL,
    subject VARCHAR(254) NOT NULL,
    message TEXT NOT NULL,
    created_at TIMESTAMP WITH TIME ZONE NOT NULL,
    updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
    user_id BIGINT,
    ip VARCHAR(100)
);


-- Table: django_admin_log
DROP TABLE IF EXISTS django_admin_log CASCADE;
CREATE TABLE django_admin_log (
    id INTEGER NOT NULL,
    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
);

-- Data for table: django_admin_log
INSERT INTO django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) VALUES (1, '2026-01-18 22:29:34.026717+00:00', '1', 'aaa - Bekliyor', 1, '[{"added": {}}]', 25, 1);


-- Table: django_celery_beat_clockedschedule
DROP TABLE IF EXISTS django_celery_beat_clockedschedule CASCADE;
CREATE TABLE django_celery_beat_clockedschedule (
    id BIGINT NOT NULL,
    clocked_time TIMESTAMP WITH TIME ZONE NOT NULL
);


-- Table: django_celery_beat_crontabschedule
DROP TABLE IF EXISTS django_celery_beat_crontabschedule CASCADE;
CREATE TABLE django_celery_beat_crontabschedule (
    id BIGINT NOT NULL,
    minute VARCHAR(240) NOT NULL,
    hour VARCHAR(96) NOT NULL,
    day_of_week VARCHAR(64) NOT NULL,
    day_of_month VARCHAR(124) NOT NULL,
    month_of_year VARCHAR(64) NOT NULL,
    timezone VARCHAR(63) NOT NULL
);


-- Table: django_celery_beat_intervalschedule
DROP TABLE IF EXISTS django_celery_beat_intervalschedule CASCADE;
CREATE TABLE django_celery_beat_intervalschedule (
    id BIGINT NOT NULL,
    every INTEGER NOT NULL,
    period VARCHAR(24) NOT NULL
);


-- Table: django_celery_beat_periodictask
DROP TABLE IF EXISTS django_celery_beat_periodictask CASCADE;
CREATE TABLE django_celery_beat_periodictask (
    id BIGINT NOT NULL,
    name VARCHAR(200) NOT NULL,
    task VARCHAR(200) NOT NULL,
    args TEXT NOT NULL,
    kwargs TEXT NOT NULL,
    queue VARCHAR(200),
    exchange VARCHAR(200),
    routing_key VARCHAR(200),
    expires TIMESTAMP WITH TIME ZONE,
    enabled BOOLEAN NOT NULL,
    last_run_at TIMESTAMP WITH TIME ZONE,
    total_run_count INTEGER NOT NULL,
    date_changed TIMESTAMP WITH TIME ZONE NOT NULL,
    description TEXT NOT NULL,
    crontab_id BIGINT,
    interval_id BIGINT,
    solar_id BIGINT,
    one_off BOOLEAN NOT NULL,
    start_time TIMESTAMP WITH TIME ZONE,
    priority INTEGER,
    headers TEXT NOT NULL,
    clocked_id BIGINT,
    expire_seconds INTEGER
);


-- Table: django_celery_beat_periodictasks
DROP TABLE IF EXISTS django_celery_beat_periodictasks CASCADE;
CREATE TABLE django_celery_beat_periodictasks (
    ident SMALLINT NOT NULL,
    last_update TIMESTAMP WITH TIME ZONE NOT NULL
);


-- Table: django_celery_beat_solarschedule
DROP TABLE IF EXISTS django_celery_beat_solarschedule CASCADE;
CREATE TABLE django_celery_beat_solarschedule (
    id BIGINT NOT NULL,
    event VARCHAR(24) NOT NULL,
    latitude NUMERIC NOT NULL,
    longitude NUMERIC NOT NULL
);


-- Table: django_celery_results_chordcounter
DROP TABLE IF EXISTS django_celery_results_chordcounter CASCADE;
CREATE TABLE django_celery_results_chordcounter (
    id INTEGER NOT NULL,
    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 INTEGER NOT NULL,
    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 INTEGER NOT NULL,
    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 INTEGER NOT NULL,
    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', 'group');
INSERT INTO django_content_type (id, app_label, model) VALUES (3, 'auth', 'permission');
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, 'django_celery_results', 'chordcounter');
INSERT INTO django_content_type (id, app_label, model) VALUES (7, 'django_celery_results', 'groupresult');
INSERT INTO django_content_type (id, app_label, model) VALUES (8, 'django_celery_results', 'taskresult');
INSERT INTO django_content_type (id, app_label, model) VALUES (9, 'django_celery_beat', 'clockedschedule');
INSERT INTO django_content_type (id, app_label, model) VALUES (10, 'django_celery_beat', 'crontabschedule');
INSERT INTO django_content_type (id, app_label, model) VALUES (11, 'django_celery_beat', 'intervalschedule');
INSERT INTO django_content_type (id, app_label, model) VALUES (12, 'django_celery_beat', 'periodictask');
INSERT INTO django_content_type (id, app_label, model) VALUES (13, 'django_celery_beat', 'periodictasks');
INSERT INTO django_content_type (id, app_label, model) VALUES (14, 'django_celery_beat', 'solarschedule');
INSERT INTO django_content_type (id, app_label, model) VALUES (15, 'social_django', 'association');
INSERT INTO django_content_type (id, app_label, model) VALUES (16, 'social_django', 'code');
INSERT INTO django_content_type (id, app_label, model) VALUES (17, 'social_django', 'nonce');
INSERT INTO django_content_type (id, app_label, model) VALUES (18, 'social_django', 'partial');
INSERT INTO django_content_type (id, app_label, model) VALUES (19, 'social_django', 'usersocialauth');
INSERT INTO django_content_type (id, app_label, model) VALUES (20, 'sites', 'site');
INSERT INTO django_content_type (id, app_label, model) VALUES (21, 'accounts', 'customuser');
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, 'settings', 'sitesettings');
INSERT INTO django_content_type (id, app_label, model) VALUES (25, 'backup', 'databasebackup');
INSERT INTO django_content_type (id, app_label, model) VALUES (26, 'contact', 'contact');
INSERT INTO django_content_type (id, app_label, model) VALUES (27, 'product', 'category');
INSERT INTO django_content_type (id, app_label, model) VALUES (28, 'product', 'comment');
INSERT INTO django_content_type (id, app_label, model) VALUES (29, 'product', 'images');
INSERT INTO django_content_type (id, app_label, model) VALUES (30, 'product', 'product');
INSERT INTO django_content_type (id, app_label, model) VALUES (31, 'product', 'tags');


-- Table: django_migrations
DROP TABLE IF EXISTS django_migrations CASCADE;
CREATE TABLE django_migrations (
    id BIGINT NOT NULL,
    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-18 22:26:26.197648+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (2, 'contenttypes', '0002_remove_content_type_name', '2026-01-18 22:26:26.360052+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (3, 'auth', '0001_initial', '2026-01-18 22:26:26.904480+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (4, 'auth', '0002_alter_permission_name_max_length', '2026-01-18 22:26:27.004323+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (5, 'auth', '0003_alter_user_email_max_length', '2026-01-18 22:26:27.071923+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (6, 'auth', '0004_alter_user_username_opts', '2026-01-18 22:26:27.167428+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (7, 'auth', '0005_alter_user_last_login_null', '2026-01-18 22:26:27.303966+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (8, 'auth', '0006_require_contenttypes_0002', '2026-01-18 22:26:27.391310+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (9, 'auth', '0007_alter_validators_add_error_messages', '2026-01-18 22:26:27.484909+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (10, 'auth', '0008_alter_user_username_max_length', '2026-01-18 22:26:27.577593+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (11, 'auth', '0009_alter_user_last_name_max_length', '2026-01-18 22:26:27.774582+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (12, 'auth', '0010_alter_group_name_max_length', '2026-01-18 22:26:27.931659+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (13, 'auth', '0011_update_proxy_permissions', '2026-01-18 22:26:27.999110+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (14, 'auth', '0012_alter_user_first_name_max_length', '2026-01-18 22:26:28.091754+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (15, 'accounts', '0001_initial', '2026-01-18 22:26:28.718278+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (16, 'admin', '0001_initial', '2026-01-18 22:26:28.997267+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (17, 'admin', '0002_logentry_remove_auto_add', '2026-01-18 22:26:29.035111+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (18, 'admin', '0003_logentry_add_action_flag_choices', '2026-01-18 22:26:29.132077+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (19, 'backup', '0001_initial', '2026-01-18 22:26:29.396877+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (20, 'contact', '0001_initial', '2026-01-18 22:26:29.498738+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (21, 'contact', '0002_contact_user', '2026-01-18 22:26:29.726625+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (22, 'contact', '0003_alter_contact_message', '2026-01-18 22:26:29.828197+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (23, 'contact', '0004_contact_ip', '2026-01-18 22:26:29.992327+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (24, 'contact', '0005_alter_contact_ip_alter_contact_user', '2026-01-18 22:26:30.323272+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (25, 'django_celery_beat', '0001_initial', '2026-01-18 22:26:30.768960+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (26, 'django_celery_beat', '0002_auto_20161118_0346', '2026-01-18 22:26:30.969010+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (27, 'django_celery_beat', '0003_auto_20161209_0049', '2026-01-18 22:26:31.072305+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (28, 'django_celery_beat', '0004_auto_20170221_0000', '2026-01-18 22:26:31.133956+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (29, 'django_celery_beat', '0005_add_solarschedule_events_choices', '2026-01-18 22:26:31.224248+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (30, 'django_celery_beat', '0006_auto_20180322_0932', '2026-01-18 22:26:31.519108+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (31, 'django_celery_beat', '0007_auto_20180521_0826', '2026-01-18 22:26:31.718953+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (32, 'django_celery_beat', '0008_auto_20180914_1922', '2026-01-18 22:26:31.798080+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (33, 'django_celery_beat', '0006_auto_20180210_1226', '2026-01-18 22:26:31.898867+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (34, 'django_celery_beat', '0006_periodictask_priority', '2026-01-18 22:26:32.054824+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (35, 'django_celery_beat', '0009_periodictask_headers', '2026-01-18 22:26:32.212981+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (36, 'django_celery_beat', '0010_auto_20190429_0326', '2026-01-18 22:26:32.426848+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (37, 'django_celery_beat', '0011_auto_20190508_0153', '2026-01-18 22:26:32.685772+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (38, 'django_celery_beat', '0012_periodictask_expire_seconds', '2026-01-18 22:26:32.783946+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (39, 'django_celery_beat', '0013_auto_20200609_0727', '2026-01-18 22:26:32.849509+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (40, 'django_celery_beat', '0014_remove_clockedschedule_enabled', '2026-01-18 22:26:33.003032+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (41, 'django_celery_beat', '0015_alter_clockedschedule_id_alter_crontabschedule_id_and_more', '2026-01-18 22:26:34.475445+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (42, 'django_celery_results', '0001_initial', '2026-01-18 22:26:34.772179+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (43, 'django_celery_results', '0002_add_task_name_args_kwargs', '2026-01-18 22:26:34.929787+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (44, 'django_celery_results', '0003_auto_20181106_1101', '2026-01-18 22:26:34.992086+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (45, 'django_celery_results', '0004_auto_20190516_0412', '2026-01-18 22:26:35.300946+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (46, 'django_celery_results', '0005_taskresult_worker', '2026-01-18 22:26:35.512788+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (47, 'django_celery_results', '0006_taskresult_date_created', '2026-01-18 22:26:35.748405+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (48, 'django_celery_results', '0007_remove_taskresult_hidden', '2026-01-18 22:26:35.842453+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (49, 'django_celery_results', '0008_chordcounter', '2026-01-18 22:26:36.040012+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (50, 'django_celery_results', '0009_groupresult', '2026-01-18 22:26:37.044478+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (51, 'django_celery_results', '0010_remove_duplicate_indices', '2026-01-18 22:26:37.197820+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (52, 'django_celery_results', '0011_taskresult_periodic_task_name', '2026-01-18 22:26:37.324394+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (53, 'django_celery_results', '0012_taskresult_date_started', '2026-01-18 22:26:37.447071+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (54, 'django_celery_results', '0013_taskresult_django_cele_periodi_1993cf_idx', '2026-01-18 22:26:37.567406+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (55, 'django_celery_results', '0014_alter_taskresult_status', '2026-01-18 22:26:37.630094+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (56, 'product', '0001_initial', '2026-01-18 22:26:39.186225+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (57, 'product', '0002_product_kd_price_alter_product_price', '2026-01-18 22:26:39.293780+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (58, 'product', '0003_rename_kd_price_product_kg_price', '2026-01-18 22:26:39.423004+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (59, 'product', '0004_alter_images_options_alter_images_images_and_more', '2026-01-18 22:26:39.681525+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (60, 'product', '0005_product_special_product_special_images', '2026-01-18 22:26:39.882839+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (61, 'product', '0006_product_thumbnail', '2026-01-18 22:26:40.010784+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (62, 'product', '0007_category_images', '2026-01-18 22:26:40.166425+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (63, 'product', '0008_remove_product_special_images', '2026-01-18 22:26:40.292882+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (64, 'product', '0009_remove_product_special', '2026-01-18 22:26:40.419665+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (65, 'product', '0010_alter_product_price', '2026-01-18 22:26:40.488409+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (66, 'product', '0011_remove_product_kg_price_product_brim', '2026-01-18 22:26:40.715387+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (67, 'product', '0012_alter_product_brim', '2026-01-18 22:26:40.783285+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (68, 'product', '0013_alter_product_brim', '2026-01-18 22:26:40.879267+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (69, 'product', '0014_alter_product_slug', '2026-01-18 22:26:40.975299+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (70, 'product', '0015_alter_product_brim', '2026-01-18 22:26:41.102201+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (71, 'product', '0016_product_gallery', '2026-01-18 22:26:41.516596+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (72, 'product', '0017_alter_product_brim', '2026-01-18 22:26:41.556929+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (73, 'product', '0018_product_is_front', '2026-01-18 22:26:41.750191+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (74, 'product', '0019_product_thumb', '2026-01-18 22:26:41.910670+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (75, 'product', '0020_remove_product_thumbnail_alter_product_thumb', '2026-01-18 22:26:42.051322+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (76, 'product', '0021_remove_product_thumb_alter_category_images_and_more', '2026-01-18 22:26:42.322768+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (77, 'sessions', '0001_initial', '2026-01-18 22:26:42.539586+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (78, 'settings', '0001_initial', '2026-01-18 22:26:42.693943+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (79, 'settings', '0002_setting_linkedin_setting_pinterest', '2026-01-18 22:26:42.914953+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (80, 'settings', '0003_sitesettings', '2026-01-18 22:26:43.040738+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (81, 'settings', '0004_alter_sitesettings_options_sitesettings_site_active', '2026-01-18 22:26:43.197700+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (82, 'settings', '0005_alter_sitesettings_site_active', '2026-01-18 22:26:43.259407+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (83, 'sites', '0001_initial', '2026-01-18 22:26:43.415004+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (84, 'sites', '0002_alter_domain_unique', '2026-01-18 22:26:43.566011+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (85, 'default', '0001_initial', '2026-01-18 22:26:44.103081+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (86, 'social_auth', '0001_initial', '2026-01-18 22:26:44.133067+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (87, 'social_django', '0001_initial', '2026-01-18 22:26:44.162641+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (88, 'default', '0002_add_related_name', '2026-01-18 22:26:44.211596+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (89, 'social_auth', '0002_add_related_name', '2026-01-18 22:26:44.268276+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (90, 'social_django', '0002_add_related_name', '2026-01-18 22:26:44.297551+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (91, 'default', '0003_alter_email_max_length', '2026-01-18 22:26:44.421917+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (92, 'social_auth', '0003_alter_email_max_length', '2026-01-18 22:26:44.451711+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (93, 'social_django', '0003_alter_email_max_length', '2026-01-18 22:26:44.481836+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (94, 'default', '0004_auto_20160423_0400', '2026-01-18 22:26:44.553779+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (95, 'social_auth', '0004_auto_20160423_0400', '2026-01-18 22:26:44.613238+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (96, 'social_django', '0004_auto_20160423_0400', '2026-01-18 22:26:44.643021+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (97, 'social_auth', '0005_auto_20160727_2333', '2026-01-18 22:26:44.765049+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (98, 'social_django', '0005_auto_20160727_2333', '2026-01-18 22:26:44.795770+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (99, 'social_django', '0006_partial', '2026-01-18 22:26:45.017004+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (100, 'social_django', '0007_code_timestamp', '2026-01-18 22:26:45.203222+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (101, 'social_django', '0008_partial_timestamp', '2026-01-18 22:26:45.390796+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (102, 'social_django', '0009_auto_20191118_0520', '2026-01-18 22:26:45.606051+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (103, 'social_django', '0010_uid_db_index', '2026-01-18 22:26:45.768091+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (104, 'social_django', '0011_alter_id_fields', '2026-01-18 22:26:46.483286+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (105, 'social_django', '[REDACTED]', '2026-01-18 22:26:46.719674+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (106, 'social_django', '0013_migrate_extra_data', '2026-01-18 22:26:46.965822+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (107, 'social_django', '[REDACTED]', '2026-01-18 22:26:47.134938+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (108, 'social_django', '[REDACTED]', '2026-01-18 22:26:47.297024+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (109, 'social_django', '[REDACTED]', '2026-01-18 22:26:47.369579+00:00');
INSERT INTO django_migrations (id, app, name, applied) VALUES (110, 'social_django', '[REDACTED]', '2026-01-18 22:26:47.531898+00:00');


-- 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 ('tcqskuvq8ylqqsnym8li5ryz5msuh07l', '.eJxVjDsOwjAQRO_iGln-x6GkzxmstXeNA8iR4qRC3B1HSgHdaN6bebMA-1bC3mgNM7Irk-zy20VIT6oHwAfU-8LTUrd1jvxQ-Ekbnxak1-10_w4KtNLXlLMln1COkI0atHMWRp81AYERpIX1yigXM9IAHnvWVngw0nSuyLPPF_siOAc:1vhbFg:OLstq7hX4uJnLrchGxLbzykgqQqPzsfUd738yJCTISA', '2026-02-01 22:28:08.313123+00:00');


-- Table: django_site
DROP TABLE IF EXISTS django_site CASCADE;
CREATE TABLE django_site (
    id INTEGER NOT NULL,
    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 BIGINT NOT NULL,
    title VARCHAR(254) NOT NULL,
    is_active BOOLEAN NOT NULL,
    created_at TIMESTAMP WITH TIME ZONE NOT NULL,
    updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
    images VARCHAR(100)
);


-- Table: products
DROP TABLE IF EXISTS products CASCADE;
CREATE TABLE products (
    id BIGINT NOT NULL,
    title VARCHAR(254) NOT NULL,
    content TEXT,
    keywords VARCHAR(254) NOT NULL,
    price DOUBLE PRECISION NOT NULL,
    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,
    images VARCHAR(100),
    brim VARCHAR(10) NOT NULL,
    is_front BOOLEAN NOT NULL
);


-- Table: products_categories
DROP TABLE IF EXISTS products_categories CASCADE;
CREATE TABLE products_categories (
    id BIGINT NOT NULL,
    product_id BIGINT NOT NULL,
    category_id BIGINT NOT NULL
);


-- Table: products_gallery
DROP TABLE IF EXISTS products_gallery CASCADE;
CREATE TABLE products_gallery (
    id BIGINT NOT NULL,
    product_id BIGINT NOT NULL,
    images_id BIGINT NOT NULL
);


-- Table: products_tags
DROP TABLE IF EXISTS products_tags CASCADE;
CREATE TABLE products_tags (
    id BIGINT NOT NULL,
    product_id BIGINT NOT NULL,
    tags_id BIGINT NOT NULL
);


-- Table: settings
DROP TABLE IF EXISTS settings CASCADE;
CREATE TABLE settings (
    id BIGINT NOT NULL,
    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,
    linkedin VARCHAR(254),
    pinterest VARCHAR(254)
);


-- Table: site_settings
DROP TABLE IF EXISTS site_settings CASCADE;
CREATE TABLE site_settings (
    id BIGINT NOT NULL,
    is_active BOOLEAN NOT NULL,
    created_at TIMESTAMP WITH TIME ZONE NOT NULL,
    updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
    site_active BOOLEAN NOT NULL
);


-- Table: social_auth_association
DROP TABLE IF EXISTS social_auth_association CASCADE;
CREATE TABLE social_auth_association (
    id BIGINT NOT NULL,
    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 BIGINT NOT NULL,
    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 BIGINT NOT NULL,
    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 BIGINT NOT NULL,
    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 BIGINT NOT NULL,
    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 BIGINT NOT NULL,
    tag 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,
    slug VARCHAR(50) 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('contacts_id_seq', (SELECT COALESCE(MAX(id), 1) FROM contacts));
SELECT setval('django_celery_beat_crontabschedule_id_seq', (SELECT COALESCE(MAX(id), 1) FROM django_celery_beat_crontabschedule));
SELECT setval('django_celery_beat_intervalschedule_id_seq', (SELECT COALESCE(MAX(id), 1) FROM django_celery_beat_intervalschedule));
SELECT setval('django_celery_beat_periodictask_id_seq', (SELECT COALESCE(MAX(id), 1) FROM django_celery_beat_periodictask));
SELECT setval('django_celery_beat_solarschedule_id_seq', (SELECT COALESCE(MAX(id), 1) FROM django_celery_beat_solarschedule));
SELECT setval('django_celery_beat_clockedschedule_id_seq', (SELECT COALESCE(MAX(id), 1) FROM django_celery_beat_clockedschedule));
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('categories_id_seq', (SELECT COALESCE(MAX(id), 1) FROM categories));
SELECT setval('tags_id_seq', (SELECT COALESCE(MAX(id), 1) FROM tags));
SELECT setval('products_id_seq', (SELECT COALESCE(MAX(id), 1) FROM products));
SELECT setval('products_categories_id_seq', (SELECT COALESCE(MAX(id), 1) FROM products_categories));
SELECT setval('products_tags_id_seq', (SELECT COALESCE(MAX(id), 1) FROM products_tags));
SELECT setval('comments_id_seq', (SELECT COALESCE(MAX(id), 1) FROM comments));
SELECT setval('products_gallery_id_seq', (SELECT COALESCE(MAX(id), 1) FROM products_gallery));
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('site_settings_id_seq', (SELECT COALESCE(MAX(id), 1) FROM site_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));
