{
    :create pin {
        cid: String =>
        type: Int
    }
}
{
    :create particle {
        cid: String =>
        mime: String,
        text: String,
        blocks: Int,
        size: Int,
        size_local: Int,
        type: String
    }
}

{
    :create link {
        from: String,
        to: String,
        neuron: String =>
        timestamp: Int,
        transaction_hash: String default ''
    }
}
{
    :create transaction {
        hash: String,
        index: Int,
        neuron: String,
        type: String =>
        block_height: Int,
        success: Bool,
        timestamp: Int,
        value: Json,
        memo: String
    }
}

{
    :create sync_status {
        owner_id: String,
        id: String =>
        entry_type: Int,
        disabled: Bool,
        timestamp_update: Int,
        timestamp_read: Int,
        unread_count: Int,
        meta: Json
    }
}

{
    :create config {
        key: String,
        group_key: String =>
        value: Json
    }
}

{
    :create sync_queue {
        id: String,
        job_type: Int =>
        data: String default '',
        status: Int default 0,
        priority: Float default 0,
    }
}

{
    :create community {
        owner_id: String,
        neuron: String =>
        particle: String,
        name: String default '',
        following: Bool,
        follower: Bool
    }
}
{
    :create embeddings {
        cid: String =>
        vec: <F32; 384>
    }
}
{
    ::hnsw create embeddings:semantic{
        fields: [vec],
        dim: 384,
        ef: 100,
        m: 16
    }
}

Synonyms

pussy-ts/src/services/CozoDb/migrations/schema.cozo

Neighbours