Skip to content

Commit cd91aa3

Browse files
chore(db): deploy access_cutoff_notifications to cloud and regen types (#517)
Applies migration 20260725100000 to the linked Supabase project and regenerates lib/database.types.ts from it. The cloud migration record was realigned to the repo's 20260725100000 filename (apply_migration stamps its own timestamp) so a later `supabase db push` doesn't try to re-run it. Verified on cloud: 6 columns, RLS enabled with zero policies (the intended deny-by-default — only service-role writers exist), unique constraint access_cutoff_notifications_unique_stage present, 3 indexes. The only new advisor finding is the corresponding INFO rls_enabled_no_policy, which is the design, not a gap. The diff also picks up get_published_lesson_counts, which existed on cloud but was missing from the checked-in types — pre-existing drift, additive. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0168MCSb3b3iWM5TSb25Rp3v
1 parent 5641c1b commit cd91aa3

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

lib/database.types.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,41 @@ export type Database = {
1414
}
1515
public: {
1616
Tables: {
17+
access_cutoff_notifications: {
18+
Row: {
19+
cutoff_at: string
20+
id: string
21+
recipient_count: number
22+
sent_at: string
23+
stage: string
24+
tenant_id: string
25+
}
26+
Insert: {
27+
cutoff_at: string
28+
id?: string
29+
recipient_count?: number
30+
sent_at?: string
31+
stage: string
32+
tenant_id: string
33+
}
34+
Update: {
35+
cutoff_at?: string
36+
id?: string
37+
recipient_count?: number
38+
sent_at?: string
39+
stage?: string
40+
tenant_id?: string
41+
}
42+
Relationships: [
43+
{
44+
foreignKeyName: "access_cutoff_notifications_tenant_id_fkey"
45+
columns: ["tenant_id"]
46+
isOneToOne: false
47+
referencedRelation: "tenants"
48+
referencedColumns: ["id"]
49+
},
50+
]
51+
}
1752
aristotle_messages: {
1853
Row: {
1954
content: string
@@ -6421,6 +6456,13 @@ export type Database = {
64216456
Returns: Json
64226457
}
64236458
get_platform_stats: { Args: never; Returns: Json }
6459+
get_published_lesson_counts: {
6460+
Args: { _course_ids: number[] }
6461+
Returns: {
6462+
course_id: number
6463+
lesson_count: number
6464+
}[]
6465+
}
64246466
get_tenant_id: { Args: never; Returns: string }
64256467
get_tenant_role: { Args: never; Returns: string }
64266468
grant_free_entitlement: {
@@ -6455,6 +6497,7 @@ export type Database = {
64556497
}[]
64566498
}
64576499
is_super_admin: { Args: never; Returns: boolean }
6500+
is_tenant_staff: { Args: never; Returns: boolean }
64586501
issue_certificate_if_eligible: {
64596502
Args: { p_course_id: number; p_user_id: string }
64606503
Returns: Json

0 commit comments

Comments
 (0)