package Ġby . tt re 1 6 . b ri ana . model Ċ Ċ import Ġorg . jetbrains . ex posed . dao . id . Entity ID Ċ import Ġorg . jetbrains . ex posed . dao . UUID Entity Ċ import Ġorg . jetbrains . ex posed . dao . UUID Entity Class Ċ import Ġorg . jetbrains . ex posed . dao . id . UUID Table Ċ import Ġorg . jetbrains . ex posed . sql .` java - time `. datetime Ċ import Ġjava . util .* Ċ Ċ object ĠConfirm ationToken s : ĠUUID Table (" confirmation _ tokens ") Ġ{ ĊĠĠĠ Ġval Ġemail Ġ= Ġvarchar (" email ", Ġ 1 2 8 ) ĊĠĠĠ Ġval Ġtoken Ġ= Ġvarchar (" login ", Ġ 1 2 8 ) ĊĠĠĠ Ġvar ĠcreatedAt Ġ= Ġdatetime (" created _ at ") ĊĠĠĠ Ġvar Ġexpired At Ġ= Ġdatetime (" expired _ at ") ĊĠĠĠ Ġvar Ġconfirmed At Ġ= Ġdatetime (" confirmed _ at "). nullable () Ċ } Ċ Ċ class ĠConfirm ationToken ( id : ĠEntity ID < UUID >): ĠUUID Entity ( id ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠUUID Entity Class < Confirm ationToken >( Confirm ationToken s ) ĊĠĠĠ Ġvar Ġemail Ġby ĠConfirm ationToken s . email ĊĠĠĠ Ġvar Ġtoken Ġby ĠConfirm ationToken s . token ĊĠĠĠ Ġvar ĠcreatedAt Ġby ĠConfirm ationToken s . createdAt ĊĠĠĠ Ġvar Ġexpired At Ġby ĠConfirm ationToken s . expired At ĊĠĠĠ Ġvar Ġconfirmed At Ġby ĠConfirm ationToken s . confirmed At Ċ } ĊĊ