@@ -22,7 +22,7 @@ schools_formatted as (
2222 null ::date as " dateLastModified" ,
2323 school_name as " name" ,
2424 ' school' as " type" ,
25- null ::string as " identifier" ,
25+ school_id as " identifier" ,
2626 {{ gen_sourced_id(' lea' ) }} as " parentSourcedId" ,
2727 {{ gen_natural_key(' school' ) }} as " metadata.edu.natural_key" ,
2828 tenant_code
@@ -36,7 +36,7 @@ leas_formatted as (
3636 null ::date as " dateLastModified" ,
3737 lea_name as " name" ,
3838 ' district' as " type" ,
39- null ::string as " identifier" ,
39+ lea_id as " identifier" ,
4040 {# gen_sourced_id('sea') as "parentSourcedId", #}
4141 null ::string as " parentSourcedId" , -- tmp: pending update in edu_edfi_source
4242 {{ gen_natural_key(' lea' ) }} as " metadata.edu.natural_key" ,
@@ -51,7 +51,7 @@ seas_formatted as (
5151 null ::date as " dateLastModified" ,
5252 sea_name as " name" ,
5353 ' state' as " type" ,
54- null ::string as " identifier" ,
54+ sea_id as " identifier" ,
5555 null ::string as " parentSourcedId" , -- todo
5656 {{ gen_natural_key(' sea' ) }} as " metadata.edu.natural_key" ,
5757 tenant_code
0 commit comments