local_patient_info.g.dart 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. part of 'local_patient_info.dart';
  3. // **************************************************************************
  4. // IsarCollectionGenerator
  5. // **************************************************************************
  6. // coverage:ignore-file
  7. // ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types
  8. extension GetLocalPatientInfoCollection on Isar {
  9. IsarCollection<LocalPatientInfo> get localPatientInfos => this.collection();
  10. }
  11. const LocalPatientInfoSchema = CollectionSchema(
  12. name: r'LocalPatientInfo',
  13. id: -6338185391368687767,
  14. properties: {
  15. r'idCard': PropertySchema(
  16. id: 0,
  17. name: r'idCard',
  18. type: IsarType.string,
  19. ),
  20. r'idCardDecrypt': PropertySchema(
  21. id: 1,
  22. name: r'idCardDecrypt',
  23. type: IsarType.string,
  24. ),
  25. r'name': PropertySchema(
  26. id: 2,
  27. name: r'name',
  28. type: IsarType.string,
  29. ),
  30. r'namePic': PropertySchema(
  31. id: 3,
  32. name: r'namePic',
  33. type: IsarType.string,
  34. ),
  35. r'relation': PropertySchema(
  36. id: 4,
  37. name: r'relation',
  38. type: IsarType.string,
  39. ),
  40. r'serverId': PropertySchema(
  41. id: 5,
  42. name: r'serverId',
  43. type: IsarType.string,
  44. ),
  45. r'userId': PropertySchema(
  46. id: 6,
  47. name: r'userId',
  48. type: IsarType.string,
  49. )
  50. },
  51. estimateSize: _localPatientInfoEstimateSize,
  52. serialize: _localPatientInfoSerialize,
  53. deserialize: _localPatientInfoDeserialize,
  54. deserializeProp: _localPatientInfoDeserializeProp,
  55. idName: r'id',
  56. indexes: {},
  57. links: {},
  58. embeddedSchemas: {},
  59. getId: _localPatientInfoGetId,
  60. getLinks: _localPatientInfoGetLinks,
  61. attach: _localPatientInfoAttach,
  62. version: '3.1.8',
  63. );
  64. int _localPatientInfoEstimateSize(
  65. LocalPatientInfo object,
  66. List<int> offsets,
  67. Map<Type, List<int>> allOffsets,
  68. ) {
  69. var bytesCount = offsets.last;
  70. {
  71. final value = object.idCard;
  72. if (value != null) {
  73. bytesCount += 3 + value.length * 3;
  74. }
  75. }
  76. bytesCount += 3 + object.idCardDecrypt.length * 3;
  77. {
  78. final value = object.name;
  79. if (value != null) {
  80. bytesCount += 3 + value.length * 3;
  81. }
  82. }
  83. {
  84. final value = object.namePic;
  85. if (value != null) {
  86. bytesCount += 3 + value.length * 3;
  87. }
  88. }
  89. {
  90. final value = object.relation;
  91. if (value != null) {
  92. bytesCount += 3 + value.length * 3;
  93. }
  94. }
  95. {
  96. final value = object.serverId;
  97. if (value != null) {
  98. bytesCount += 3 + value.length * 3;
  99. }
  100. }
  101. {
  102. final value = object.userId;
  103. if (value != null) {
  104. bytesCount += 3 + value.length * 3;
  105. }
  106. }
  107. return bytesCount;
  108. }
  109. void _localPatientInfoSerialize(
  110. LocalPatientInfo object,
  111. IsarWriter writer,
  112. List<int> offsets,
  113. Map<Type, List<int>> allOffsets,
  114. ) {
  115. writer.writeString(offsets[0], object.idCard);
  116. writer.writeString(offsets[1], object.idCardDecrypt);
  117. writer.writeString(offsets[2], object.name);
  118. writer.writeString(offsets[3], object.namePic);
  119. writer.writeString(offsets[4], object.relation);
  120. writer.writeString(offsets[5], object.serverId);
  121. writer.writeString(offsets[6], object.userId);
  122. }
  123. LocalPatientInfo _localPatientInfoDeserialize(
  124. Id id,
  125. IsarReader reader,
  126. List<int> offsets,
  127. Map<Type, List<int>> allOffsets,
  128. ) {
  129. final object = LocalPatientInfo(
  130. idCard: reader.readStringOrNull(offsets[0]),
  131. name: reader.readStringOrNull(offsets[2]),
  132. namePic: reader.readStringOrNull(offsets[3]),
  133. relation: reader.readStringOrNull(offsets[4]),
  134. serverId: reader.readStringOrNull(offsets[5]),
  135. userId: reader.readStringOrNull(offsets[6]),
  136. );
  137. object.id = id;
  138. return object;
  139. }
  140. P _localPatientInfoDeserializeProp<P>(
  141. IsarReader reader,
  142. int propertyId,
  143. int offset,
  144. Map<Type, List<int>> allOffsets,
  145. ) {
  146. switch (propertyId) {
  147. case 0:
  148. return (reader.readStringOrNull(offset)) as P;
  149. case 1:
  150. return (reader.readString(offset)) as P;
  151. case 2:
  152. return (reader.readStringOrNull(offset)) as P;
  153. case 3:
  154. return (reader.readStringOrNull(offset)) as P;
  155. case 4:
  156. return (reader.readStringOrNull(offset)) as P;
  157. case 5:
  158. return (reader.readStringOrNull(offset)) as P;
  159. case 6:
  160. return (reader.readStringOrNull(offset)) as P;
  161. default:
  162. throw IsarError('Unknown property with id $propertyId');
  163. }
  164. }
  165. Id _localPatientInfoGetId(LocalPatientInfo object) {
  166. return object.id;
  167. }
  168. List<IsarLinkBase<dynamic>> _localPatientInfoGetLinks(LocalPatientInfo object) {
  169. return [];
  170. }
  171. void _localPatientInfoAttach(
  172. IsarCollection<dynamic> col, Id id, LocalPatientInfo object) {
  173. object.id = id;
  174. }
  175. extension LocalPatientInfoQueryWhereSort
  176. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QWhere> {
  177. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterWhere> anyId() {
  178. return QueryBuilder.apply(this, (query) {
  179. return query.addWhereClause(const IdWhereClause.any());
  180. });
  181. }
  182. }
  183. extension LocalPatientInfoQueryWhere
  184. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QWhereClause> {
  185. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterWhereClause> idEqualTo(
  186. Id id) {
  187. return QueryBuilder.apply(this, (query) {
  188. return query.addWhereClause(IdWhereClause.between(
  189. lower: id,
  190. upper: id,
  191. ));
  192. });
  193. }
  194. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterWhereClause>
  195. idNotEqualTo(Id id) {
  196. return QueryBuilder.apply(this, (query) {
  197. if (query.whereSort == Sort.asc) {
  198. return query
  199. .addWhereClause(
  200. IdWhereClause.lessThan(upper: id, includeUpper: false),
  201. )
  202. .addWhereClause(
  203. IdWhereClause.greaterThan(lower: id, includeLower: false),
  204. );
  205. } else {
  206. return query
  207. .addWhereClause(
  208. IdWhereClause.greaterThan(lower: id, includeLower: false),
  209. )
  210. .addWhereClause(
  211. IdWhereClause.lessThan(upper: id, includeUpper: false),
  212. );
  213. }
  214. });
  215. }
  216. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterWhereClause>
  217. idGreaterThan(Id id, {bool include = false}) {
  218. return QueryBuilder.apply(this, (query) {
  219. return query.addWhereClause(
  220. IdWhereClause.greaterThan(lower: id, includeLower: include),
  221. );
  222. });
  223. }
  224. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterWhereClause>
  225. idLessThan(Id id, {bool include = false}) {
  226. return QueryBuilder.apply(this, (query) {
  227. return query.addWhereClause(
  228. IdWhereClause.lessThan(upper: id, includeUpper: include),
  229. );
  230. });
  231. }
  232. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterWhereClause> idBetween(
  233. Id lowerId,
  234. Id upperId, {
  235. bool includeLower = true,
  236. bool includeUpper = true,
  237. }) {
  238. return QueryBuilder.apply(this, (query) {
  239. return query.addWhereClause(IdWhereClause.between(
  240. lower: lowerId,
  241. includeLower: includeLower,
  242. upper: upperId,
  243. includeUpper: includeUpper,
  244. ));
  245. });
  246. }
  247. }
  248. extension LocalPatientInfoQueryFilter
  249. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QFilterCondition> {
  250. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  251. idEqualTo(Id value) {
  252. return QueryBuilder.apply(this, (query) {
  253. return query.addFilterCondition(FilterCondition.equalTo(
  254. property: r'id',
  255. value: value,
  256. ));
  257. });
  258. }
  259. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  260. idGreaterThan(
  261. Id value, {
  262. bool include = false,
  263. }) {
  264. return QueryBuilder.apply(this, (query) {
  265. return query.addFilterCondition(FilterCondition.greaterThan(
  266. include: include,
  267. property: r'id',
  268. value: value,
  269. ));
  270. });
  271. }
  272. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  273. idLessThan(
  274. Id value, {
  275. bool include = false,
  276. }) {
  277. return QueryBuilder.apply(this, (query) {
  278. return query.addFilterCondition(FilterCondition.lessThan(
  279. include: include,
  280. property: r'id',
  281. value: value,
  282. ));
  283. });
  284. }
  285. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  286. idBetween(
  287. Id lower,
  288. Id upper, {
  289. bool includeLower = true,
  290. bool includeUpper = true,
  291. }) {
  292. return QueryBuilder.apply(this, (query) {
  293. return query.addFilterCondition(FilterCondition.between(
  294. property: r'id',
  295. lower: lower,
  296. includeLower: includeLower,
  297. upper: upper,
  298. includeUpper: includeUpper,
  299. ));
  300. });
  301. }
  302. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  303. idCardIsNull() {
  304. return QueryBuilder.apply(this, (query) {
  305. return query.addFilterCondition(const FilterCondition.isNull(
  306. property: r'idCard',
  307. ));
  308. });
  309. }
  310. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  311. idCardIsNotNull() {
  312. return QueryBuilder.apply(this, (query) {
  313. return query.addFilterCondition(const FilterCondition.isNotNull(
  314. property: r'idCard',
  315. ));
  316. });
  317. }
  318. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  319. idCardEqualTo(
  320. String? value, {
  321. bool caseSensitive = true,
  322. }) {
  323. return QueryBuilder.apply(this, (query) {
  324. return query.addFilterCondition(FilterCondition.equalTo(
  325. property: r'idCard',
  326. value: value,
  327. caseSensitive: caseSensitive,
  328. ));
  329. });
  330. }
  331. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  332. idCardGreaterThan(
  333. String? value, {
  334. bool include = false,
  335. bool caseSensitive = true,
  336. }) {
  337. return QueryBuilder.apply(this, (query) {
  338. return query.addFilterCondition(FilterCondition.greaterThan(
  339. include: include,
  340. property: r'idCard',
  341. value: value,
  342. caseSensitive: caseSensitive,
  343. ));
  344. });
  345. }
  346. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  347. idCardLessThan(
  348. String? value, {
  349. bool include = false,
  350. bool caseSensitive = true,
  351. }) {
  352. return QueryBuilder.apply(this, (query) {
  353. return query.addFilterCondition(FilterCondition.lessThan(
  354. include: include,
  355. property: r'idCard',
  356. value: value,
  357. caseSensitive: caseSensitive,
  358. ));
  359. });
  360. }
  361. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  362. idCardBetween(
  363. String? lower,
  364. String? upper, {
  365. bool includeLower = true,
  366. bool includeUpper = true,
  367. bool caseSensitive = true,
  368. }) {
  369. return QueryBuilder.apply(this, (query) {
  370. return query.addFilterCondition(FilterCondition.between(
  371. property: r'idCard',
  372. lower: lower,
  373. includeLower: includeLower,
  374. upper: upper,
  375. includeUpper: includeUpper,
  376. caseSensitive: caseSensitive,
  377. ));
  378. });
  379. }
  380. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  381. idCardStartsWith(
  382. String value, {
  383. bool caseSensitive = true,
  384. }) {
  385. return QueryBuilder.apply(this, (query) {
  386. return query.addFilterCondition(FilterCondition.startsWith(
  387. property: r'idCard',
  388. value: value,
  389. caseSensitive: caseSensitive,
  390. ));
  391. });
  392. }
  393. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  394. idCardEndsWith(
  395. String value, {
  396. bool caseSensitive = true,
  397. }) {
  398. return QueryBuilder.apply(this, (query) {
  399. return query.addFilterCondition(FilterCondition.endsWith(
  400. property: r'idCard',
  401. value: value,
  402. caseSensitive: caseSensitive,
  403. ));
  404. });
  405. }
  406. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  407. idCardContains(String value, {bool caseSensitive = true}) {
  408. return QueryBuilder.apply(this, (query) {
  409. return query.addFilterCondition(FilterCondition.contains(
  410. property: r'idCard',
  411. value: value,
  412. caseSensitive: caseSensitive,
  413. ));
  414. });
  415. }
  416. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  417. idCardMatches(String pattern, {bool caseSensitive = true}) {
  418. return QueryBuilder.apply(this, (query) {
  419. return query.addFilterCondition(FilterCondition.matches(
  420. property: r'idCard',
  421. wildcard: pattern,
  422. caseSensitive: caseSensitive,
  423. ));
  424. });
  425. }
  426. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  427. idCardIsEmpty() {
  428. return QueryBuilder.apply(this, (query) {
  429. return query.addFilterCondition(FilterCondition.equalTo(
  430. property: r'idCard',
  431. value: '',
  432. ));
  433. });
  434. }
  435. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  436. idCardIsNotEmpty() {
  437. return QueryBuilder.apply(this, (query) {
  438. return query.addFilterCondition(FilterCondition.greaterThan(
  439. property: r'idCard',
  440. value: '',
  441. ));
  442. });
  443. }
  444. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  445. idCardDecryptEqualTo(
  446. String value, {
  447. bool caseSensitive = true,
  448. }) {
  449. return QueryBuilder.apply(this, (query) {
  450. return query.addFilterCondition(FilterCondition.equalTo(
  451. property: r'idCardDecrypt',
  452. value: value,
  453. caseSensitive: caseSensitive,
  454. ));
  455. });
  456. }
  457. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  458. idCardDecryptGreaterThan(
  459. String value, {
  460. bool include = false,
  461. bool caseSensitive = true,
  462. }) {
  463. return QueryBuilder.apply(this, (query) {
  464. return query.addFilterCondition(FilterCondition.greaterThan(
  465. include: include,
  466. property: r'idCardDecrypt',
  467. value: value,
  468. caseSensitive: caseSensitive,
  469. ));
  470. });
  471. }
  472. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  473. idCardDecryptLessThan(
  474. String value, {
  475. bool include = false,
  476. bool caseSensitive = true,
  477. }) {
  478. return QueryBuilder.apply(this, (query) {
  479. return query.addFilterCondition(FilterCondition.lessThan(
  480. include: include,
  481. property: r'idCardDecrypt',
  482. value: value,
  483. caseSensitive: caseSensitive,
  484. ));
  485. });
  486. }
  487. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  488. idCardDecryptBetween(
  489. String lower,
  490. String upper, {
  491. bool includeLower = true,
  492. bool includeUpper = true,
  493. bool caseSensitive = true,
  494. }) {
  495. return QueryBuilder.apply(this, (query) {
  496. return query.addFilterCondition(FilterCondition.between(
  497. property: r'idCardDecrypt',
  498. lower: lower,
  499. includeLower: includeLower,
  500. upper: upper,
  501. includeUpper: includeUpper,
  502. caseSensitive: caseSensitive,
  503. ));
  504. });
  505. }
  506. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  507. idCardDecryptStartsWith(
  508. String value, {
  509. bool caseSensitive = true,
  510. }) {
  511. return QueryBuilder.apply(this, (query) {
  512. return query.addFilterCondition(FilterCondition.startsWith(
  513. property: r'idCardDecrypt',
  514. value: value,
  515. caseSensitive: caseSensitive,
  516. ));
  517. });
  518. }
  519. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  520. idCardDecryptEndsWith(
  521. String value, {
  522. bool caseSensitive = true,
  523. }) {
  524. return QueryBuilder.apply(this, (query) {
  525. return query.addFilterCondition(FilterCondition.endsWith(
  526. property: r'idCardDecrypt',
  527. value: value,
  528. caseSensitive: caseSensitive,
  529. ));
  530. });
  531. }
  532. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  533. idCardDecryptContains(String value, {bool caseSensitive = true}) {
  534. return QueryBuilder.apply(this, (query) {
  535. return query.addFilterCondition(FilterCondition.contains(
  536. property: r'idCardDecrypt',
  537. value: value,
  538. caseSensitive: caseSensitive,
  539. ));
  540. });
  541. }
  542. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  543. idCardDecryptMatches(String pattern, {bool caseSensitive = true}) {
  544. return QueryBuilder.apply(this, (query) {
  545. return query.addFilterCondition(FilterCondition.matches(
  546. property: r'idCardDecrypt',
  547. wildcard: pattern,
  548. caseSensitive: caseSensitive,
  549. ));
  550. });
  551. }
  552. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  553. idCardDecryptIsEmpty() {
  554. return QueryBuilder.apply(this, (query) {
  555. return query.addFilterCondition(FilterCondition.equalTo(
  556. property: r'idCardDecrypt',
  557. value: '',
  558. ));
  559. });
  560. }
  561. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  562. idCardDecryptIsNotEmpty() {
  563. return QueryBuilder.apply(this, (query) {
  564. return query.addFilterCondition(FilterCondition.greaterThan(
  565. property: r'idCardDecrypt',
  566. value: '',
  567. ));
  568. });
  569. }
  570. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  571. nameIsNull() {
  572. return QueryBuilder.apply(this, (query) {
  573. return query.addFilterCondition(const FilterCondition.isNull(
  574. property: r'name',
  575. ));
  576. });
  577. }
  578. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  579. nameIsNotNull() {
  580. return QueryBuilder.apply(this, (query) {
  581. return query.addFilterCondition(const FilterCondition.isNotNull(
  582. property: r'name',
  583. ));
  584. });
  585. }
  586. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  587. nameEqualTo(
  588. String? value, {
  589. bool caseSensitive = true,
  590. }) {
  591. return QueryBuilder.apply(this, (query) {
  592. return query.addFilterCondition(FilterCondition.equalTo(
  593. property: r'name',
  594. value: value,
  595. caseSensitive: caseSensitive,
  596. ));
  597. });
  598. }
  599. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  600. nameGreaterThan(
  601. String? value, {
  602. bool include = false,
  603. bool caseSensitive = true,
  604. }) {
  605. return QueryBuilder.apply(this, (query) {
  606. return query.addFilterCondition(FilterCondition.greaterThan(
  607. include: include,
  608. property: r'name',
  609. value: value,
  610. caseSensitive: caseSensitive,
  611. ));
  612. });
  613. }
  614. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  615. nameLessThan(
  616. String? value, {
  617. bool include = false,
  618. bool caseSensitive = true,
  619. }) {
  620. return QueryBuilder.apply(this, (query) {
  621. return query.addFilterCondition(FilterCondition.lessThan(
  622. include: include,
  623. property: r'name',
  624. value: value,
  625. caseSensitive: caseSensitive,
  626. ));
  627. });
  628. }
  629. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  630. nameBetween(
  631. String? lower,
  632. String? upper, {
  633. bool includeLower = true,
  634. bool includeUpper = true,
  635. bool caseSensitive = true,
  636. }) {
  637. return QueryBuilder.apply(this, (query) {
  638. return query.addFilterCondition(FilterCondition.between(
  639. property: r'name',
  640. lower: lower,
  641. includeLower: includeLower,
  642. upper: upper,
  643. includeUpper: includeUpper,
  644. caseSensitive: caseSensitive,
  645. ));
  646. });
  647. }
  648. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  649. nameStartsWith(
  650. String value, {
  651. bool caseSensitive = true,
  652. }) {
  653. return QueryBuilder.apply(this, (query) {
  654. return query.addFilterCondition(FilterCondition.startsWith(
  655. property: r'name',
  656. value: value,
  657. caseSensitive: caseSensitive,
  658. ));
  659. });
  660. }
  661. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  662. nameEndsWith(
  663. String value, {
  664. bool caseSensitive = true,
  665. }) {
  666. return QueryBuilder.apply(this, (query) {
  667. return query.addFilterCondition(FilterCondition.endsWith(
  668. property: r'name',
  669. value: value,
  670. caseSensitive: caseSensitive,
  671. ));
  672. });
  673. }
  674. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  675. nameContains(String value, {bool caseSensitive = true}) {
  676. return QueryBuilder.apply(this, (query) {
  677. return query.addFilterCondition(FilterCondition.contains(
  678. property: r'name',
  679. value: value,
  680. caseSensitive: caseSensitive,
  681. ));
  682. });
  683. }
  684. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  685. nameMatches(String pattern, {bool caseSensitive = true}) {
  686. return QueryBuilder.apply(this, (query) {
  687. return query.addFilterCondition(FilterCondition.matches(
  688. property: r'name',
  689. wildcard: pattern,
  690. caseSensitive: caseSensitive,
  691. ));
  692. });
  693. }
  694. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  695. nameIsEmpty() {
  696. return QueryBuilder.apply(this, (query) {
  697. return query.addFilterCondition(FilterCondition.equalTo(
  698. property: r'name',
  699. value: '',
  700. ));
  701. });
  702. }
  703. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  704. nameIsNotEmpty() {
  705. return QueryBuilder.apply(this, (query) {
  706. return query.addFilterCondition(FilterCondition.greaterThan(
  707. property: r'name',
  708. value: '',
  709. ));
  710. });
  711. }
  712. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  713. namePicIsNull() {
  714. return QueryBuilder.apply(this, (query) {
  715. return query.addFilterCondition(const FilterCondition.isNull(
  716. property: r'namePic',
  717. ));
  718. });
  719. }
  720. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  721. namePicIsNotNull() {
  722. return QueryBuilder.apply(this, (query) {
  723. return query.addFilterCondition(const FilterCondition.isNotNull(
  724. property: r'namePic',
  725. ));
  726. });
  727. }
  728. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  729. namePicEqualTo(
  730. String? value, {
  731. bool caseSensitive = true,
  732. }) {
  733. return QueryBuilder.apply(this, (query) {
  734. return query.addFilterCondition(FilterCondition.equalTo(
  735. property: r'namePic',
  736. value: value,
  737. caseSensitive: caseSensitive,
  738. ));
  739. });
  740. }
  741. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  742. namePicGreaterThan(
  743. String? value, {
  744. bool include = false,
  745. bool caseSensitive = true,
  746. }) {
  747. return QueryBuilder.apply(this, (query) {
  748. return query.addFilterCondition(FilterCondition.greaterThan(
  749. include: include,
  750. property: r'namePic',
  751. value: value,
  752. caseSensitive: caseSensitive,
  753. ));
  754. });
  755. }
  756. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  757. namePicLessThan(
  758. String? value, {
  759. bool include = false,
  760. bool caseSensitive = true,
  761. }) {
  762. return QueryBuilder.apply(this, (query) {
  763. return query.addFilterCondition(FilterCondition.lessThan(
  764. include: include,
  765. property: r'namePic',
  766. value: value,
  767. caseSensitive: caseSensitive,
  768. ));
  769. });
  770. }
  771. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  772. namePicBetween(
  773. String? lower,
  774. String? upper, {
  775. bool includeLower = true,
  776. bool includeUpper = true,
  777. bool caseSensitive = true,
  778. }) {
  779. return QueryBuilder.apply(this, (query) {
  780. return query.addFilterCondition(FilterCondition.between(
  781. property: r'namePic',
  782. lower: lower,
  783. includeLower: includeLower,
  784. upper: upper,
  785. includeUpper: includeUpper,
  786. caseSensitive: caseSensitive,
  787. ));
  788. });
  789. }
  790. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  791. namePicStartsWith(
  792. String value, {
  793. bool caseSensitive = true,
  794. }) {
  795. return QueryBuilder.apply(this, (query) {
  796. return query.addFilterCondition(FilterCondition.startsWith(
  797. property: r'namePic',
  798. value: value,
  799. caseSensitive: caseSensitive,
  800. ));
  801. });
  802. }
  803. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  804. namePicEndsWith(
  805. String value, {
  806. bool caseSensitive = true,
  807. }) {
  808. return QueryBuilder.apply(this, (query) {
  809. return query.addFilterCondition(FilterCondition.endsWith(
  810. property: r'namePic',
  811. value: value,
  812. caseSensitive: caseSensitive,
  813. ));
  814. });
  815. }
  816. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  817. namePicContains(String value, {bool caseSensitive = true}) {
  818. return QueryBuilder.apply(this, (query) {
  819. return query.addFilterCondition(FilterCondition.contains(
  820. property: r'namePic',
  821. value: value,
  822. caseSensitive: caseSensitive,
  823. ));
  824. });
  825. }
  826. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  827. namePicMatches(String pattern, {bool caseSensitive = true}) {
  828. return QueryBuilder.apply(this, (query) {
  829. return query.addFilterCondition(FilterCondition.matches(
  830. property: r'namePic',
  831. wildcard: pattern,
  832. caseSensitive: caseSensitive,
  833. ));
  834. });
  835. }
  836. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  837. namePicIsEmpty() {
  838. return QueryBuilder.apply(this, (query) {
  839. return query.addFilterCondition(FilterCondition.equalTo(
  840. property: r'namePic',
  841. value: '',
  842. ));
  843. });
  844. }
  845. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  846. namePicIsNotEmpty() {
  847. return QueryBuilder.apply(this, (query) {
  848. return query.addFilterCondition(FilterCondition.greaterThan(
  849. property: r'namePic',
  850. value: '',
  851. ));
  852. });
  853. }
  854. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  855. relationIsNull() {
  856. return QueryBuilder.apply(this, (query) {
  857. return query.addFilterCondition(const FilterCondition.isNull(
  858. property: r'relation',
  859. ));
  860. });
  861. }
  862. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  863. relationIsNotNull() {
  864. return QueryBuilder.apply(this, (query) {
  865. return query.addFilterCondition(const FilterCondition.isNotNull(
  866. property: r'relation',
  867. ));
  868. });
  869. }
  870. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  871. relationEqualTo(
  872. String? value, {
  873. bool caseSensitive = true,
  874. }) {
  875. return QueryBuilder.apply(this, (query) {
  876. return query.addFilterCondition(FilterCondition.equalTo(
  877. property: r'relation',
  878. value: value,
  879. caseSensitive: caseSensitive,
  880. ));
  881. });
  882. }
  883. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  884. relationGreaterThan(
  885. String? value, {
  886. bool include = false,
  887. bool caseSensitive = true,
  888. }) {
  889. return QueryBuilder.apply(this, (query) {
  890. return query.addFilterCondition(FilterCondition.greaterThan(
  891. include: include,
  892. property: r'relation',
  893. value: value,
  894. caseSensitive: caseSensitive,
  895. ));
  896. });
  897. }
  898. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  899. relationLessThan(
  900. String? value, {
  901. bool include = false,
  902. bool caseSensitive = true,
  903. }) {
  904. return QueryBuilder.apply(this, (query) {
  905. return query.addFilterCondition(FilterCondition.lessThan(
  906. include: include,
  907. property: r'relation',
  908. value: value,
  909. caseSensitive: caseSensitive,
  910. ));
  911. });
  912. }
  913. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  914. relationBetween(
  915. String? lower,
  916. String? upper, {
  917. bool includeLower = true,
  918. bool includeUpper = true,
  919. bool caseSensitive = true,
  920. }) {
  921. return QueryBuilder.apply(this, (query) {
  922. return query.addFilterCondition(FilterCondition.between(
  923. property: r'relation',
  924. lower: lower,
  925. includeLower: includeLower,
  926. upper: upper,
  927. includeUpper: includeUpper,
  928. caseSensitive: caseSensitive,
  929. ));
  930. });
  931. }
  932. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  933. relationStartsWith(
  934. String value, {
  935. bool caseSensitive = true,
  936. }) {
  937. return QueryBuilder.apply(this, (query) {
  938. return query.addFilterCondition(FilterCondition.startsWith(
  939. property: r'relation',
  940. value: value,
  941. caseSensitive: caseSensitive,
  942. ));
  943. });
  944. }
  945. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  946. relationEndsWith(
  947. String value, {
  948. bool caseSensitive = true,
  949. }) {
  950. return QueryBuilder.apply(this, (query) {
  951. return query.addFilterCondition(FilterCondition.endsWith(
  952. property: r'relation',
  953. value: value,
  954. caseSensitive: caseSensitive,
  955. ));
  956. });
  957. }
  958. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  959. relationContains(String value, {bool caseSensitive = true}) {
  960. return QueryBuilder.apply(this, (query) {
  961. return query.addFilterCondition(FilterCondition.contains(
  962. property: r'relation',
  963. value: value,
  964. caseSensitive: caseSensitive,
  965. ));
  966. });
  967. }
  968. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  969. relationMatches(String pattern, {bool caseSensitive = true}) {
  970. return QueryBuilder.apply(this, (query) {
  971. return query.addFilterCondition(FilterCondition.matches(
  972. property: r'relation',
  973. wildcard: pattern,
  974. caseSensitive: caseSensitive,
  975. ));
  976. });
  977. }
  978. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  979. relationIsEmpty() {
  980. return QueryBuilder.apply(this, (query) {
  981. return query.addFilterCondition(FilterCondition.equalTo(
  982. property: r'relation',
  983. value: '',
  984. ));
  985. });
  986. }
  987. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  988. relationIsNotEmpty() {
  989. return QueryBuilder.apply(this, (query) {
  990. return query.addFilterCondition(FilterCondition.greaterThan(
  991. property: r'relation',
  992. value: '',
  993. ));
  994. });
  995. }
  996. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  997. serverIdIsNull() {
  998. return QueryBuilder.apply(this, (query) {
  999. return query.addFilterCondition(const FilterCondition.isNull(
  1000. property: r'serverId',
  1001. ));
  1002. });
  1003. }
  1004. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1005. serverIdIsNotNull() {
  1006. return QueryBuilder.apply(this, (query) {
  1007. return query.addFilterCondition(const FilterCondition.isNotNull(
  1008. property: r'serverId',
  1009. ));
  1010. });
  1011. }
  1012. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1013. serverIdEqualTo(
  1014. String? value, {
  1015. bool caseSensitive = true,
  1016. }) {
  1017. return QueryBuilder.apply(this, (query) {
  1018. return query.addFilterCondition(FilterCondition.equalTo(
  1019. property: r'serverId',
  1020. value: value,
  1021. caseSensitive: caseSensitive,
  1022. ));
  1023. });
  1024. }
  1025. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1026. serverIdGreaterThan(
  1027. String? value, {
  1028. bool include = false,
  1029. bool caseSensitive = true,
  1030. }) {
  1031. return QueryBuilder.apply(this, (query) {
  1032. return query.addFilterCondition(FilterCondition.greaterThan(
  1033. include: include,
  1034. property: r'serverId',
  1035. value: value,
  1036. caseSensitive: caseSensitive,
  1037. ));
  1038. });
  1039. }
  1040. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1041. serverIdLessThan(
  1042. String? value, {
  1043. bool include = false,
  1044. bool caseSensitive = true,
  1045. }) {
  1046. return QueryBuilder.apply(this, (query) {
  1047. return query.addFilterCondition(FilterCondition.lessThan(
  1048. include: include,
  1049. property: r'serverId',
  1050. value: value,
  1051. caseSensitive: caseSensitive,
  1052. ));
  1053. });
  1054. }
  1055. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1056. serverIdBetween(
  1057. String? lower,
  1058. String? upper, {
  1059. bool includeLower = true,
  1060. bool includeUpper = true,
  1061. bool caseSensitive = true,
  1062. }) {
  1063. return QueryBuilder.apply(this, (query) {
  1064. return query.addFilterCondition(FilterCondition.between(
  1065. property: r'serverId',
  1066. lower: lower,
  1067. includeLower: includeLower,
  1068. upper: upper,
  1069. includeUpper: includeUpper,
  1070. caseSensitive: caseSensitive,
  1071. ));
  1072. });
  1073. }
  1074. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1075. serverIdStartsWith(
  1076. String value, {
  1077. bool caseSensitive = true,
  1078. }) {
  1079. return QueryBuilder.apply(this, (query) {
  1080. return query.addFilterCondition(FilterCondition.startsWith(
  1081. property: r'serverId',
  1082. value: value,
  1083. caseSensitive: caseSensitive,
  1084. ));
  1085. });
  1086. }
  1087. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1088. serverIdEndsWith(
  1089. String value, {
  1090. bool caseSensitive = true,
  1091. }) {
  1092. return QueryBuilder.apply(this, (query) {
  1093. return query.addFilterCondition(FilterCondition.endsWith(
  1094. property: r'serverId',
  1095. value: value,
  1096. caseSensitive: caseSensitive,
  1097. ));
  1098. });
  1099. }
  1100. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1101. serverIdContains(String value, {bool caseSensitive = true}) {
  1102. return QueryBuilder.apply(this, (query) {
  1103. return query.addFilterCondition(FilterCondition.contains(
  1104. property: r'serverId',
  1105. value: value,
  1106. caseSensitive: caseSensitive,
  1107. ));
  1108. });
  1109. }
  1110. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1111. serverIdMatches(String pattern, {bool caseSensitive = true}) {
  1112. return QueryBuilder.apply(this, (query) {
  1113. return query.addFilterCondition(FilterCondition.matches(
  1114. property: r'serverId',
  1115. wildcard: pattern,
  1116. caseSensitive: caseSensitive,
  1117. ));
  1118. });
  1119. }
  1120. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1121. serverIdIsEmpty() {
  1122. return QueryBuilder.apply(this, (query) {
  1123. return query.addFilterCondition(FilterCondition.equalTo(
  1124. property: r'serverId',
  1125. value: '',
  1126. ));
  1127. });
  1128. }
  1129. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1130. serverIdIsNotEmpty() {
  1131. return QueryBuilder.apply(this, (query) {
  1132. return query.addFilterCondition(FilterCondition.greaterThan(
  1133. property: r'serverId',
  1134. value: '',
  1135. ));
  1136. });
  1137. }
  1138. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1139. userIdIsNull() {
  1140. return QueryBuilder.apply(this, (query) {
  1141. return query.addFilterCondition(const FilterCondition.isNull(
  1142. property: r'userId',
  1143. ));
  1144. });
  1145. }
  1146. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1147. userIdIsNotNull() {
  1148. return QueryBuilder.apply(this, (query) {
  1149. return query.addFilterCondition(const FilterCondition.isNotNull(
  1150. property: r'userId',
  1151. ));
  1152. });
  1153. }
  1154. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1155. userIdEqualTo(
  1156. String? value, {
  1157. bool caseSensitive = true,
  1158. }) {
  1159. return QueryBuilder.apply(this, (query) {
  1160. return query.addFilterCondition(FilterCondition.equalTo(
  1161. property: r'userId',
  1162. value: value,
  1163. caseSensitive: caseSensitive,
  1164. ));
  1165. });
  1166. }
  1167. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1168. userIdGreaterThan(
  1169. String? value, {
  1170. bool include = false,
  1171. bool caseSensitive = true,
  1172. }) {
  1173. return QueryBuilder.apply(this, (query) {
  1174. return query.addFilterCondition(FilterCondition.greaterThan(
  1175. include: include,
  1176. property: r'userId',
  1177. value: value,
  1178. caseSensitive: caseSensitive,
  1179. ));
  1180. });
  1181. }
  1182. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1183. userIdLessThan(
  1184. String? value, {
  1185. bool include = false,
  1186. bool caseSensitive = true,
  1187. }) {
  1188. return QueryBuilder.apply(this, (query) {
  1189. return query.addFilterCondition(FilterCondition.lessThan(
  1190. include: include,
  1191. property: r'userId',
  1192. value: value,
  1193. caseSensitive: caseSensitive,
  1194. ));
  1195. });
  1196. }
  1197. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1198. userIdBetween(
  1199. String? lower,
  1200. String? upper, {
  1201. bool includeLower = true,
  1202. bool includeUpper = true,
  1203. bool caseSensitive = true,
  1204. }) {
  1205. return QueryBuilder.apply(this, (query) {
  1206. return query.addFilterCondition(FilterCondition.between(
  1207. property: r'userId',
  1208. lower: lower,
  1209. includeLower: includeLower,
  1210. upper: upper,
  1211. includeUpper: includeUpper,
  1212. caseSensitive: caseSensitive,
  1213. ));
  1214. });
  1215. }
  1216. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1217. userIdStartsWith(
  1218. String value, {
  1219. bool caseSensitive = true,
  1220. }) {
  1221. return QueryBuilder.apply(this, (query) {
  1222. return query.addFilterCondition(FilterCondition.startsWith(
  1223. property: r'userId',
  1224. value: value,
  1225. caseSensitive: caseSensitive,
  1226. ));
  1227. });
  1228. }
  1229. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1230. userIdEndsWith(
  1231. String value, {
  1232. bool caseSensitive = true,
  1233. }) {
  1234. return QueryBuilder.apply(this, (query) {
  1235. return query.addFilterCondition(FilterCondition.endsWith(
  1236. property: r'userId',
  1237. value: value,
  1238. caseSensitive: caseSensitive,
  1239. ));
  1240. });
  1241. }
  1242. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1243. userIdContains(String value, {bool caseSensitive = true}) {
  1244. return QueryBuilder.apply(this, (query) {
  1245. return query.addFilterCondition(FilterCondition.contains(
  1246. property: r'userId',
  1247. value: value,
  1248. caseSensitive: caseSensitive,
  1249. ));
  1250. });
  1251. }
  1252. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1253. userIdMatches(String pattern, {bool caseSensitive = true}) {
  1254. return QueryBuilder.apply(this, (query) {
  1255. return query.addFilterCondition(FilterCondition.matches(
  1256. property: r'userId',
  1257. wildcard: pattern,
  1258. caseSensitive: caseSensitive,
  1259. ));
  1260. });
  1261. }
  1262. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1263. userIdIsEmpty() {
  1264. return QueryBuilder.apply(this, (query) {
  1265. return query.addFilterCondition(FilterCondition.equalTo(
  1266. property: r'userId',
  1267. value: '',
  1268. ));
  1269. });
  1270. }
  1271. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterFilterCondition>
  1272. userIdIsNotEmpty() {
  1273. return QueryBuilder.apply(this, (query) {
  1274. return query.addFilterCondition(FilterCondition.greaterThan(
  1275. property: r'userId',
  1276. value: '',
  1277. ));
  1278. });
  1279. }
  1280. }
  1281. extension LocalPatientInfoQueryObject
  1282. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QFilterCondition> {}
  1283. extension LocalPatientInfoQueryLinks
  1284. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QFilterCondition> {}
  1285. extension LocalPatientInfoQuerySortBy
  1286. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QSortBy> {
  1287. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1288. sortByIdCard() {
  1289. return QueryBuilder.apply(this, (query) {
  1290. return query.addSortBy(r'idCard', Sort.asc);
  1291. });
  1292. }
  1293. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1294. sortByIdCardDesc() {
  1295. return QueryBuilder.apply(this, (query) {
  1296. return query.addSortBy(r'idCard', Sort.desc);
  1297. });
  1298. }
  1299. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1300. sortByIdCardDecrypt() {
  1301. return QueryBuilder.apply(this, (query) {
  1302. return query.addSortBy(r'idCardDecrypt', Sort.asc);
  1303. });
  1304. }
  1305. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1306. sortByIdCardDecryptDesc() {
  1307. return QueryBuilder.apply(this, (query) {
  1308. return query.addSortBy(r'idCardDecrypt', Sort.desc);
  1309. });
  1310. }
  1311. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy> sortByName() {
  1312. return QueryBuilder.apply(this, (query) {
  1313. return query.addSortBy(r'name', Sort.asc);
  1314. });
  1315. }
  1316. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1317. sortByNameDesc() {
  1318. return QueryBuilder.apply(this, (query) {
  1319. return query.addSortBy(r'name', Sort.desc);
  1320. });
  1321. }
  1322. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1323. sortByNamePic() {
  1324. return QueryBuilder.apply(this, (query) {
  1325. return query.addSortBy(r'namePic', Sort.asc);
  1326. });
  1327. }
  1328. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1329. sortByNamePicDesc() {
  1330. return QueryBuilder.apply(this, (query) {
  1331. return query.addSortBy(r'namePic', Sort.desc);
  1332. });
  1333. }
  1334. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1335. sortByRelation() {
  1336. return QueryBuilder.apply(this, (query) {
  1337. return query.addSortBy(r'relation', Sort.asc);
  1338. });
  1339. }
  1340. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1341. sortByRelationDesc() {
  1342. return QueryBuilder.apply(this, (query) {
  1343. return query.addSortBy(r'relation', Sort.desc);
  1344. });
  1345. }
  1346. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1347. sortByServerId() {
  1348. return QueryBuilder.apply(this, (query) {
  1349. return query.addSortBy(r'serverId', Sort.asc);
  1350. });
  1351. }
  1352. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1353. sortByServerIdDesc() {
  1354. return QueryBuilder.apply(this, (query) {
  1355. return query.addSortBy(r'serverId', Sort.desc);
  1356. });
  1357. }
  1358. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1359. sortByUserId() {
  1360. return QueryBuilder.apply(this, (query) {
  1361. return query.addSortBy(r'userId', Sort.asc);
  1362. });
  1363. }
  1364. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1365. sortByUserIdDesc() {
  1366. return QueryBuilder.apply(this, (query) {
  1367. return query.addSortBy(r'userId', Sort.desc);
  1368. });
  1369. }
  1370. }
  1371. extension LocalPatientInfoQuerySortThenBy
  1372. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QSortThenBy> {
  1373. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy> thenById() {
  1374. return QueryBuilder.apply(this, (query) {
  1375. return query.addSortBy(r'id', Sort.asc);
  1376. });
  1377. }
  1378. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1379. thenByIdDesc() {
  1380. return QueryBuilder.apply(this, (query) {
  1381. return query.addSortBy(r'id', Sort.desc);
  1382. });
  1383. }
  1384. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1385. thenByIdCard() {
  1386. return QueryBuilder.apply(this, (query) {
  1387. return query.addSortBy(r'idCard', Sort.asc);
  1388. });
  1389. }
  1390. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1391. thenByIdCardDesc() {
  1392. return QueryBuilder.apply(this, (query) {
  1393. return query.addSortBy(r'idCard', Sort.desc);
  1394. });
  1395. }
  1396. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1397. thenByIdCardDecrypt() {
  1398. return QueryBuilder.apply(this, (query) {
  1399. return query.addSortBy(r'idCardDecrypt', Sort.asc);
  1400. });
  1401. }
  1402. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1403. thenByIdCardDecryptDesc() {
  1404. return QueryBuilder.apply(this, (query) {
  1405. return query.addSortBy(r'idCardDecrypt', Sort.desc);
  1406. });
  1407. }
  1408. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy> thenByName() {
  1409. return QueryBuilder.apply(this, (query) {
  1410. return query.addSortBy(r'name', Sort.asc);
  1411. });
  1412. }
  1413. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1414. thenByNameDesc() {
  1415. return QueryBuilder.apply(this, (query) {
  1416. return query.addSortBy(r'name', Sort.desc);
  1417. });
  1418. }
  1419. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1420. thenByNamePic() {
  1421. return QueryBuilder.apply(this, (query) {
  1422. return query.addSortBy(r'namePic', Sort.asc);
  1423. });
  1424. }
  1425. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1426. thenByNamePicDesc() {
  1427. return QueryBuilder.apply(this, (query) {
  1428. return query.addSortBy(r'namePic', Sort.desc);
  1429. });
  1430. }
  1431. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1432. thenByRelation() {
  1433. return QueryBuilder.apply(this, (query) {
  1434. return query.addSortBy(r'relation', Sort.asc);
  1435. });
  1436. }
  1437. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1438. thenByRelationDesc() {
  1439. return QueryBuilder.apply(this, (query) {
  1440. return query.addSortBy(r'relation', Sort.desc);
  1441. });
  1442. }
  1443. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1444. thenByServerId() {
  1445. return QueryBuilder.apply(this, (query) {
  1446. return query.addSortBy(r'serverId', Sort.asc);
  1447. });
  1448. }
  1449. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1450. thenByServerIdDesc() {
  1451. return QueryBuilder.apply(this, (query) {
  1452. return query.addSortBy(r'serverId', Sort.desc);
  1453. });
  1454. }
  1455. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1456. thenByUserId() {
  1457. return QueryBuilder.apply(this, (query) {
  1458. return query.addSortBy(r'userId', Sort.asc);
  1459. });
  1460. }
  1461. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QAfterSortBy>
  1462. thenByUserIdDesc() {
  1463. return QueryBuilder.apply(this, (query) {
  1464. return query.addSortBy(r'userId', Sort.desc);
  1465. });
  1466. }
  1467. }
  1468. extension LocalPatientInfoQueryWhereDistinct
  1469. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct> {
  1470. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct> distinctByIdCard(
  1471. {bool caseSensitive = true}) {
  1472. return QueryBuilder.apply(this, (query) {
  1473. return query.addDistinctBy(r'idCard', caseSensitive: caseSensitive);
  1474. });
  1475. }
  1476. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct>
  1477. distinctByIdCardDecrypt({bool caseSensitive = true}) {
  1478. return QueryBuilder.apply(this, (query) {
  1479. return query.addDistinctBy(r'idCardDecrypt',
  1480. caseSensitive: caseSensitive);
  1481. });
  1482. }
  1483. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct> distinctByName(
  1484. {bool caseSensitive = true}) {
  1485. return QueryBuilder.apply(this, (query) {
  1486. return query.addDistinctBy(r'name', caseSensitive: caseSensitive);
  1487. });
  1488. }
  1489. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct> distinctByNamePic(
  1490. {bool caseSensitive = true}) {
  1491. return QueryBuilder.apply(this, (query) {
  1492. return query.addDistinctBy(r'namePic', caseSensitive: caseSensitive);
  1493. });
  1494. }
  1495. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct>
  1496. distinctByRelation({bool caseSensitive = true}) {
  1497. return QueryBuilder.apply(this, (query) {
  1498. return query.addDistinctBy(r'relation', caseSensitive: caseSensitive);
  1499. });
  1500. }
  1501. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct>
  1502. distinctByServerId({bool caseSensitive = true}) {
  1503. return QueryBuilder.apply(this, (query) {
  1504. return query.addDistinctBy(r'serverId', caseSensitive: caseSensitive);
  1505. });
  1506. }
  1507. QueryBuilder<LocalPatientInfo, LocalPatientInfo, QDistinct> distinctByUserId(
  1508. {bool caseSensitive = true}) {
  1509. return QueryBuilder.apply(this, (query) {
  1510. return query.addDistinctBy(r'userId', caseSensitive: caseSensitive);
  1511. });
  1512. }
  1513. }
  1514. extension LocalPatientInfoQueryProperty
  1515. on QueryBuilder<LocalPatientInfo, LocalPatientInfo, QQueryProperty> {
  1516. QueryBuilder<LocalPatientInfo, int, QQueryOperations> idProperty() {
  1517. return QueryBuilder.apply(this, (query) {
  1518. return query.addPropertyName(r'id');
  1519. });
  1520. }
  1521. QueryBuilder<LocalPatientInfo, String?, QQueryOperations> idCardProperty() {
  1522. return QueryBuilder.apply(this, (query) {
  1523. return query.addPropertyName(r'idCard');
  1524. });
  1525. }
  1526. QueryBuilder<LocalPatientInfo, String, QQueryOperations>
  1527. idCardDecryptProperty() {
  1528. return QueryBuilder.apply(this, (query) {
  1529. return query.addPropertyName(r'idCardDecrypt');
  1530. });
  1531. }
  1532. QueryBuilder<LocalPatientInfo, String?, QQueryOperations> nameProperty() {
  1533. return QueryBuilder.apply(this, (query) {
  1534. return query.addPropertyName(r'name');
  1535. });
  1536. }
  1537. QueryBuilder<LocalPatientInfo, String?, QQueryOperations> namePicProperty() {
  1538. return QueryBuilder.apply(this, (query) {
  1539. return query.addPropertyName(r'namePic');
  1540. });
  1541. }
  1542. QueryBuilder<LocalPatientInfo, String?, QQueryOperations> relationProperty() {
  1543. return QueryBuilder.apply(this, (query) {
  1544. return query.addPropertyName(r'relation');
  1545. });
  1546. }
  1547. QueryBuilder<LocalPatientInfo, String?, QQueryOperations> serverIdProperty() {
  1548. return QueryBuilder.apply(this, (query) {
  1549. return query.addPropertyName(r'serverId');
  1550. });
  1551. }
  1552. QueryBuilder<LocalPatientInfo, String?, QQueryOperations> userIdProperty() {
  1553. return QueryBuilder.apply(this, (query) {
  1554. return query.addPropertyName(r'userId');
  1555. });
  1556. }
  1557. }