dyna-record
    Preparing search index...

    Class JoinTable<T, K>Abstract

    Abstract class representing a join table for HasAndBelongsToMany relationships. This class should be extended for specific join table implementations. It is virtual and not persisted to the database but manages the denormalized records in each related entity's partition.

    Declare each foreign key with the entity it references, ForeignKey<Target>, so a write condition on create or delete can guard that entity's row.

    class CustomerStore extends JoinTable<Customer, Store> {
    public readonly customerId: ForeignKey<Customer>;
    public readonly storeId: ForeignKey<Store>;
    }

    Type Parameters

    Index

    Constructors

    Methods

    Constructors

    Methods