@@ -1392,10 +1392,7 @@ export const workspaceFiles = pgTable(
13921392/**
13931393 * Public share links for workspace resources. Polymorphic on `resourceType` so a
13941394 * single mechanism serves files now and folders later. One row per resource
1395- * (disable/re-enable flips `isActive` and keeps the same token). `accessLevel`,
1396- * `authType`, `password`, and `allowedEmails` are reserved for future
1397- * password/email gating and edit links — v1 honors only `accessLevel='view'` and
1398- * `authType='public'`.
1395+ * (disable/re-enable flips `isActive` and keeps the same token).
13991396 */
14001397export const publicShare = pgTable (
14011398 'public_share' ,
@@ -1411,10 +1408,6 @@ export const publicShare = pgTable(
14111408 . references ( ( ) => user . id , { onDelete : 'cascade' } ) ,
14121409 token : text ( 'token' ) . notNull ( ) ,
14131410 isActive : boolean ( 'is_active' ) . notNull ( ) . default ( true ) ,
1414- accessLevel : text ( 'access_level' ) . notNull ( ) . default ( 'view' ) , // 'view' | 'edit' (v1 honors only 'view')
1415- authType : text ( 'auth_type' ) . notNull ( ) . default ( 'public' ) , // 'public' | 'password' | 'email' (future)
1416- password : text ( 'password' ) , // encrypted, populated when authType is 'password' (future)
1417- allowedEmails : json ( 'allowed_emails' ) . default ( '[]' ) , // emails/domains when authType is 'email' (future)
14181411 createdAt : timestamp ( 'created_at' ) . notNull ( ) . defaultNow ( ) ,
14191412 updatedAt : timestamp ( 'updated_at' ) . notNull ( ) . defaultNow ( ) ,
14201413 } ,
0 commit comments