Sindbad~EG File Manager

Current Path : /home/copmadinaarea/thecopmadinaarea.org/portal/database/
Upload File :
Current File : /home/copmadinaarea/thecopmadinaarea.org/portal/database/membership_cards.sql

-- Membership Cards Table
CREATE TABLE IF NOT EXISTS membership_cards (
    id INT AUTO_INCREMENT PRIMARY KEY,
    member_id INT NOT NULL,
    card_number VARCHAR(50) UNIQUE NOT NULL,
    issue_date DATE NOT NULL,
    expiry_date DATE,
    qr_code TEXT,
    barcode VARCHAR(100),
    is_active BOOLEAN DEFAULT TRUE,
    printed BOOLEAN DEFAULT FALSE,
    print_count INT DEFAULT 0,
    last_printed TIMESTAMP NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    FOREIGN KEY (member_id) REFERENCES members(id) ON DELETE CASCADE,
    INDEX idx_card_number (card_number),
    INDEX idx_member_id (member_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists