tangled
alpha
login
or
join now
moth11.net
/
rvcx
3
fork
atom
backend for xcvr appview
3
fork
atom
overview
issues
4
pulls
pipelines
clean up migrations for release
moth11.net
7 months ago
4a949f0d
763b66b7
-22
1 changed file
expand all
collapse all
unified
split
migrations
002_populate.up.sql
-22
migrations/002_populate.up.sql
···
1
1
INSERT INTO profiles (did, display_name, default_nick, status, avatar_cid, avatar_mime, color)
2
2
VALUES
3
3
-
('did:example:alice', 'Alice Example', 'alice', 'Chilling', 'bafybeib6...', 'image/png', 16711680),
4
4
-
('did:example:bob', 'Bob Example', 'bobby', 'Working hard', 'bafybeib7...', 'image/jpeg', 65280),
5
3
('did:plc:mqt7hthieqzpa3mwqwggbqei', 'xcvr', 'wanderer', 'hi', '', '', 3702605);
6
4
7
7
-
INSERT INTO profile_records(uri, profile_did, cid)
8
8
-
VALUES
9
9
-
('at://did:example:alice/app.bsky.actor.profile/self', 'did:example:alice', 'cid1'),
10
10
-
('at://did:example:bob/app.bsky.actor.profile/self','did:example:bob', 'cid2');
11
5
12
6
INSERT INTO did_handles (handle, did)
13
7
VALUES
14
14
-
('alice.com', 'did:example:alice'),
15
15
-
('bob.net', 'did:example:bob'),
16
8
('xcvr.org', 'did:plc:mqt7hthieqzpa3mwqwggbqei');
17
9
18
18
-
INSERT INTO channels (uri, cid, did, host, title, topic, created_at)
19
19
-
VALUES
20
20
-
('at://did:example:alice/org.xcvr.feed.channel/general', 'chanCid1', 'did:example:alice', 'xcvr.org', 'General Chat', 'All-purpose chatter', now() - interval '2 days'),
21
21
-
('at://did:example:bob/org.xcvr.feed.channel/help', 'chanCid2', 'did:example:bob', 'xcvr.org', 'Help Channel', 'Support and help', now() - interval '1 day');
22
22
-
23
23
-
INSERT INTO signets (uri, issuer_did, author_handle, channel_uri, message_id, cid)
24
24
-
VALUES
25
25
-
('at://did:example:xcvr/org.xcvr.lrc.signet/signet1', 'did:example:xcvr', 'alice.com', 'at://did:example:alice/org.xcvr.feed.channel/general', 1, 'signetCid1'),
26
26
-
('at://did:example:xcvr/org.xcvr.lrc.signet/signet2', 'did:example:xcvr', 'bob.net', 'at://did:example:bob/org.xcvr.feed.channel/help', 2, 'signetCid2');
27
27
-
28
28
-
INSERT INTO messages (uri, did, signet_uri, body, nick, color, cid)
29
29
-
VALUES
30
30
-
('at://did:example:alice/org.xcvr.lrc.message/msg1', 'did:example:alice', 'at://did:example:xcvr/org.xcvr.lrc.signet/signet1', 'Hey, welcome to the general chat!', 'alice', 16711680, 'msgCid1'),
31
31
-
('at://did:example:bob/org.xcvr.lrc.message/msg2', 'did:example:bob', 'at://did:example:xcvr/org.xcvr.lrc.signet/signet2', 'How can I help you today?', 'bobby', 65280, 'msgCid2');