backend for xcvr appview

clean up migrations for release

-22
-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 - ('did:example:alice', 'Alice Example', 'alice', 'Chilling', 'bafybeib6...', 'image/png', 16711680), 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 - INSERT INTO profile_records(uri, profile_did, cid) 8 - VALUES 9 - ('at://did:example:alice/app.bsky.actor.profile/self', 'did:example:alice', 'cid1'), 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 - ('alice.com', 'did:example:alice'), 15 - ('bob.net', 'did:example:bob'), 16 8 ('xcvr.org', 'did:plc:mqt7hthieqzpa3mwqwggbqei'); 17 9 18 - INSERT INTO channels (uri, cid, did, host, title, topic, created_at) 19 - VALUES 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 - ('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 - 23 - INSERT INTO signets (uri, issuer_did, author_handle, channel_uri, message_id, cid) 24 - VALUES 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 - ('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 - 28 - INSERT INTO messages (uri, did, signet_uri, body, nick, color, cid) 29 - VALUES 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 - ('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');