allow nullable expiry date
This commit is contained in:
parent
d7e0c59559
commit
c475c112da
2 changed files with 10 additions and 1 deletions
9
Femto.Database/Migrations/20250518193113_AddUserRole.sql
Normal file
9
Femto.Database/Migrations/20250518193113_AddUserRole.sql
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
-- Migration: AddUserRole
|
||||||
|
-- Created at: 18/05/2025 19:31:13
|
||||||
|
|
||||||
|
CREATE TABLE authn.user_role
|
||||||
|
(
|
||||||
|
user_id uuid REFERENCES authn.user_identity(id),
|
||||||
|
role int,
|
||||||
|
primary key (user_id, role)
|
||||||
|
);
|
|
@ -50,6 +50,6 @@ public class GetSignupCodesQueryHandler(IDbConnectionFactory connectionFactory)
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public Guid? RedeemedByUserId { get; set; }
|
public Guid? RedeemedByUserId { get; set; }
|
||||||
public string? RedeemedByUsername { get; set; }
|
public string? RedeemedByUsername { get; set; }
|
||||||
public DateTimeOffset ExpiresOn { get; set; }
|
public DateTimeOffset? ExpiresOn { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue