Skip to content

[Feature Request] Triple slash comments should be generated before policy comments in the resulting Prisma schema file #1816

@ymc9

Description

@ymc9
/// @@allow('create', true)
/// @@allow('read', spaces?[space.members?[user == auth()]])
/// @@allow('all', auth() == this)
/// My model for a user
model User {
  id            String      @id() @default(uuid())
  createdAt     DateTime    @default(now())
  updatedAt     DateTime    @updatedAt()
  /// @email
  email         String      @unique()
  emailVerified DateTime?
  /// @password
  /// @omit
  password      String?
  name          String?
  spaces        SpaceUser[]
  /// @url
  image         String?
  /// @json
  profile       Json?
  lists         List[]
  todos         Todo[]
  accounts      Account[]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions