Skip to content

Commit

Permalink
Merge pull request #28 from linjeforeningen-delta/legacy-mock-data
Browse files Browse the repository at this point in the history
chore(test): added testdata for legacy users
  • Loading branch information
websjef-delta authored Nov 10, 2024
2 parents 3c51533 + f15cbb9 commit 2200ec9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/main/resources/db/testdata/V901_0_0__populate_legacy_data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
create table legacy_users
(
card_id bigint not null primary key,
last_name varchar(64) null,
first_name varchar(64) null,
username varchar(16) null,
birthday varchar(8) null,
studprog varchar(10) null,
membership int null,
userlevel int null,
password varchar(64) null,
tab int null,
cash int null,
spent int null,
borrowed varchar(128) null,
comment varchar(128) null,
misc varchar(128) null,
creation_date int null
);

INSERT INTO legacy_users (card_id, last_name, first_name, username, birthday, studprog, membership, userlevel, password,
tab, cash, spent, borrowed, comment, misc, creation_date)
VALUES (10975012, 'Legacy', 'Man', 'man', '111195', 'BFY', 1, 9, 'C0FFEE', 5, -175,
10500, '', '', 'Fyllesvin', 1387228753);
INSERT INTO legacy_users (card_id, last_name, first_name, username, birthday, studprog, membership, userlevel, password,
tab, cash, spent, borrowed, comment, misc, creation_date)
VALUES (242054311, 'Legacy', 'Person', 'person', '060689', 'PhD', 1, 1, '051307161D5F505A6B1919', 0, 75, 0,
'', '?resmedlem', '', 1337958605);
INSERT INTO legacy_users (card_id, last_name, first_name, username, birthday, studprog, membership, userlevel, password,
tab, cash, spent, borrowed, comment, misc, creation_date)
VALUES (10993472, 'Legacy', 'Woman', 'woman', '060189', 'MFY', 1, 9, '091417061D5E505A5B0A0E', 1, -10, 35,
' ', 'Æresmedlem', '', 1337958605);
INSERT INTO legacy_users (card_id, last_name, first_name, username, birthday, studprog, membership, userlevel, password,
tab, cash, spent, borrowed, comment, misc, creation_date)
VALUES (306484731, 'Test', 'Test', 'test', '121212', 'Meth', 1, 0, '', 0, 35, 35, '', '', '', 1541103641);
INSERT INTO legacy_users (card_id, last_name, first_name, username, birthday, studprog, membership, userlevel, password,
tab, cash, spent, borrowed, comment, misc, creation_date)
VALUES (1111111101, 'Hektor', 'Hektor', 'hektor', '040914', 'Fisk', 1, 0, '', 0, 0, 0, '', '', '', 1410176229);

0 comments on commit 2200ec9

Please sign in to comment.