AutoBE
    Preparing search index...

    Foreign key field establishing a relationship to another model.

    interface IForeignField {
        description: string;
        name: string & SnakeCasePattern;
        nullable: boolean;
        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 exist without the referenced row. Use required foreign keys only for parents or owners that must exist before this row is created.

    relation: IRelation

    Prisma relation configuration.

    type: "uuid"
    unique: boolean

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