Skip to content

Commit

Permalink
Use decimals for float type
Browse files Browse the repository at this point in the history
  • Loading branch information
lulunac27a committed Jan 9, 2025
1 parent 67b3ea3 commit 8c22025
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ create table
if not exists user (
id integer primary key autoincrement, --user id
username text not null unique, --username
xp float default 0, --current user XP
xp_required float default 1, --user required XP to reach the next level
total_xp float default 0, --user total XP earned
xp float default 0.0, --current user XP
xp_required float default 1.0, --user required XP to reach the next level
total_xp float default 0.0, --user total XP earned
level integer default 1 --current user level
);

0 comments on commit 8c22025

Please sign in to comment.