AutoBE
    Preparing search index...

    Foreign key field establishing a relationship to another model.

    interface IForeignField {
        description: string;
        name: string & SnakeCasePattern;
        nullable: boolean;
        parentRelation: IParentRelation;
        relation: IRelation;
        type: "uuid";
        unique: boolean;
    }
    Index

    Properties

    description: string

    Finished Prisma documentation for this relationship field. Include only business prose about the referenced concept and why this table needs it.

    name: string & SnakeCasePattern

    MUST use snake_case. Convention: "{target_model}_id".

    nullable: boolean

    True only when this row can legitimately be created or stored without the referenced row. This controls the column's nullability only; the generated relation still cascades on hard delete. Use non-null foreign keys for parents or owners that must exist before this row is created.

    parentRelation: IParentRelation

    Parent-side inverse relation semantics exposed on the target model.

    relation: IRelation

    Child-side relation configuration for this foreign key.

    type: "uuid"
    unique: boolean

    True for 1:1 relationships, false for 1:N.