Skip to content

Optional one to one relationships display '!' instead of '?' in generated code #40

@steveschmitt

Description

@steveschmitt

Foreign key on one side, Inv foreign key on the other.

export class AccountUser extends BaseEntity  {
  /** Guid key */
  id!: string;
  /** Guid FK systemUser */
  systemUserId!: string;
  /** FK systemUserId */
  systemUser!: systemUser;
}

export class SystemUser extends BaseEntity  {
  /** Guid key */
  id!: string;
  /** Inv FK systemUserId */
  accountUser!: AccountUser;
}

The accountUser property on SystemUser should be optional (? instead of !)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions