Skip to content

Generate separate types for aspect relationships #41

@stockbal

Description

@stockbal

Hi all,

it would be benefitial if aspect relationships like the following

aspect adminData {
    createdby : User      @cds.on.insert : $user;
    createdon : Timestamp @cds.on.insert : $now;
}

entity Foo : adminData {
   key ID : UUID;
}

would be reflected in the generated types as well.
e.g.

  export interface adminData {
     createdby: string;
     createdon: Date;
  }

  export interface Foo extends adminData {
    ID: string;
  }

Regards,
Ludwig

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions