CREATE TABLE licenses
(
    id            UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
    partner_id    NUMERIC             NOT NULL,
    name          VARCHAR(255)        NOT NULL,
    start_date    DATE                NOT NULL,
    end_date      DATE                NOT NULL,
    renewal_date  DATE,
    serial_number VARCHAR(255) UNIQUE NOT NULL,
    created_by    numeric             not null,
    updated_by    numeric             not null,
    created_at    TIMESTAMP        DEFAULT CURRENT_TIMESTAMP,
    updated_at    TIMESTAMP        DEFAULT CURRENT_TIMESTAMP
);