Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ymc9 opened this issue Oct 29, 2024 · 0 comments
Milestone

Comments

@ymc9
Copy link
Member

ymc9 commented Oct 29, 2024

/// @@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[]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant